(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestEmptyConfig(t *testing.T) { |
| 94 | testee := metadataStore{root: t.TempDir()} |
| 95 | wholeData := []Metadata{ |
| 96 | testMetadata("context1"), |
| 97 | testMetadata("context2"), |
| 98 | testMetadata("context3"), |
| 99 | } |
| 100 | |
| 101 | for _, s := range wholeData { |
| 102 | assert.NilError(t, testee.createOrUpdate(s)) |
| 103 | } |
| 104 | |
| 105 | data, err := testee.list() |
| 106 | assert.NilError(t, err) |
| 107 | assert.Equal(t, len(data), len(wholeData)) |
| 108 | } |
| 109 | |
| 110 | type contextWithEmbedding struct { |
| 111 | embeddedStruct |
nothing calls this directly
no test coverage detected
searching dependent graphs…