Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-goldstein committed Feb 19, 2023
1 parent d80ee76 commit 8faa5a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ import (

// Regression test for github.com/dgraph-io/badger/pull/1800
func TestLargeEncode(t *testing.T) {

var headerEnc [maxHeaderSize]byte
h := header{math.MaxUint32, math.MaxUint32, math.MaxUint64, math.MaxUint8, math.MaxUint8}
require.NotPanics(t, func() { _ = h.Encode(headerEnc[:]) })

}

func TestNumFieldsHeader(t *testing.T) {

// maxHeaderSize must correspond with any changes made to header
require.Equal(t, 5, reflect.TypeOf(header{}).NumField())

}

0 comments on commit 8faa5a9

Please sign in to comment.