MCPcopy Create free account
hub / github.com/chain/Core / TestAddPrefixkv1

Function TestAddPrefixkv1

log/log_test.go:66–74  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestAddPrefixkv1(t *testing.T) {
67 ctx := context.Background()
68 ctx1 := AddPrefixkv(ctx, "a", "b")
69 got := prefix(ctx1)
70 want := []byte("a=b ")
71 if !bytes.Equal(got, want) {
72 t.Errorf(`prefix(AddPrefixkv(bg, "a", "b")) = %q want %q`, got, want)
73 }
74}
75
76func TestAddPrefixkv2(t *testing.T) {
77 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

AddPrefixkvFunction · 0.85
prefixFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected