MCPcopy Create free account
hub / github.com/docker/secrets-engine / TestIDComparable

Function TestIDComparable

x/secrets/identifiers_test.go:48–57  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestIDComparable(t *testing.T) {
49 a := MustParseID("foo")
50 b := MustParseID("foo")
51 assert.Equal(t, a, b)
52 myMap := map[ID]string{}
53 bar := "bar"
54 myMap[MustParseID("foo")] = bar
55 assert.Equal(t, bar, myMap[a])
56 assert.Equal(t, bar, myMap[b])
57}
58
59func TestMatchNew(t *testing.T) {
60 tests := []struct {

Callers

nothing calls this directly

Calls 1

MustParseIDFunction · 0.85

Tested by

no test coverage detected