Skip to content

Commit

Permalink
fix(test): adapt to printer changes in map test
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 7, 2025
1 parent 00b8f64 commit 99e47ba
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions node/basicnode/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,39 @@ func TestMap(t *testing.T) {
func BenchmarkMapStrInt_3n_AssembleStandard(b *testing.B) {
tests.SpecBenchmarkMapStrInt_3n_AssembleStandard(b, basicnode.Prototype.Map)
}

func BenchmarkMapStrInt_3n_AssembleEntry(b *testing.B) {
tests.SpecBenchmarkMapStrInt_3n_AssembleEntry(b, basicnode.Prototype.Map)
}

func BenchmarkMapStrInt_3n_Iteration(b *testing.B) {
tests.SpecBenchmarkMapStrInt_3n_Iteration(b, basicnode.Prototype.Map)
}

func BenchmarkMapStrInt_25n_AssembleStandard(b *testing.B) {
tests.SpecBenchmarkMapStrInt_25n_AssembleStandard(b, basicnode.Prototype.Map)
}

func BenchmarkMapStrInt_25n_AssembleEntry(b *testing.B) {
tests.SpecBenchmarkMapStrInt_25n_AssembleEntry(b, basicnode.Prototype.Map)
}

func BenchmarkMapStrInt_25n_Iteration(b *testing.B) {
tests.SpecBenchmarkMapStrInt_25n_Iteration(b, basicnode.Prototype.Map)
}

func BenchmarkSpec_Marshal_Map3StrInt(b *testing.B) {
tests.BenchmarkSpec_Marshal_Map3StrInt(b, basicnode.Prototype.Map)
}

func BenchmarkSpec_Marshal_MapNStrMap3StrInt(b *testing.B) {
tests.BenchmarkSpec_Marshal_MapNStrMap3StrInt(b, basicnode.Prototype.Map)
}

func BenchmarkSpec_Unmarshal_Map3StrInt(b *testing.B) {
tests.BenchmarkSpec_Unmarshal_Map3StrInt(b, basicnode.Prototype.Map)
}

func BenchmarkSpec_Unmarshal_MapNStrMap3StrInt(b *testing.B) {
tests.BenchmarkSpec_Unmarshal_MapNStrMap3StrInt(b, basicnode.Prototype.Map)
}
Expand Down Expand Up @@ -123,9 +129,9 @@ func TestMapBuilder(t *testing.T) {
actual := printer.Sprint(mapNode)

expect := `map{
string{"cat"}: string{"meow"}
string{"dog"}: string{"bark"}
string{"eel"}: string{"zap"}
string{"cat"}:string{"meow"},
string{"dog"}:string{"bark"},
string{"eel"}:string{"zap"}
}`
qt.Check(t, expect, qt.Equals, actual)

Expand Down

0 comments on commit 99e47ba

Please sign in to comment.