(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestAddPrefixkv2(t *testing.T) { |
| 77 | ctx := context.Background() |
| 78 | ctx1 := AddPrefixkv(ctx, "a", "b") |
| 79 | ctx2 := AddPrefixkv(ctx1, "c", "d") |
| 80 | got := prefix(ctx2) |
| 81 | want := []byte("a=b c=d ") |
| 82 | if !bytes.Equal(got, want) { |
| 83 | t.Errorf(`prefix(AddPrefixkv(AddPrefixkv(bg, "a", "b"), "c", "d")) = %q want %q`, got, want) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestAddPrefixkvAppendTwice(t *testing.T) { |
| 88 | ctx := context.Background() |
nothing calls this directly
no test coverage detected