(b *testing.B)
| 648 | } |
| 649 | |
| 650 | func BenchmarkAddString(b *testing.B) { |
| 651 | var x, y Value |
| 652 | |
| 653 | tst := asciiString("22") |
| 654 | x = asciiString("2") |
| 655 | y = asciiString("2") |
| 656 | |
| 657 | for i := 0; i < b.N; i++ { |
| 658 | var z Value |
| 659 | if xi, ok := x.(String); ok { |
| 660 | if yi, ok := y.(String); ok { |
| 661 | z = xi.Concat(yi) |
| 662 | } |
| 663 | } |
| 664 | if !z.StrictEquals(tst) { |
| 665 | b.Fatalf("Unexpected result %v", x) |
| 666 | } |
| 667 | } |
| 668 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…