Projects STRLCPY dolt Commits 1f5287fe
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    go/store/nbs/table_set.go
    skipped 21 lines
    22 22  package nbs
    23 23   
    24 24  import (
     25 + "bytes"
    25 26   "context"
    26 27   "errors"
    27 28   "fmt"
     29 + "sort"
    28 30   "sync"
    29 31   
    30 32   "golang.org/x/sync/errgroup"
    skipped 416 lines
    447 449   h := src.hash()
    448 450   tableSpecs = append(tableSpecs, tableSpec{h, cnt})
    449 451   }
     452 + sort.Slice(tableSpecs, func(i, j int) bool {
     453 + return bytes.Compare(tableSpecs[i].name[:], tableSpecs[j].name[:]) < 0
     454 + })
    450 455   return tableSpecs, nil
    451 456  }
    452 457   
    skipped 25 lines
  • ■ ■ ■ ■
    go/store/nbs/table_set_test.go
    skipped 62 lines
    63 63   secondSpecs, err := ts.toSpecs()
    64 64   require.NoError(t, err)
    65 65   assert.Len(secondSpecs, 2)
    66  - assert.Equal(firstSpecs, secondSpecs[1:])
     66 + assert.Equal(firstSpecs[0], secondSpecs[0])
    67 67  }
    68 68   
    69 69  func TestTableSetToSpecsExcludesEmptyTable(t *testing.T) {
    skipped 152 lines
Please wait...
Page is in error, reload to recover