(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestMetadataList(t *testing.T) { |
| 77 | testee := metadataStore{root: t.TempDir(), config: testCfg} |
| 78 | wholeData := []Metadata{ |
| 79 | testMetadata("context1"), |
| 80 | testMetadata("context2"), |
| 81 | testMetadata("context3"), |
| 82 | } |
| 83 | |
| 84 | for _, s := range wholeData { |
| 85 | assert.NilError(t, testee.createOrUpdate(s)) |
| 86 | } |
| 87 | |
| 88 | data, err := testee.list() |
| 89 | assert.NilError(t, err) |
| 90 | assert.DeepEqual(t, data, wholeData) |
| 91 | } |
| 92 | |
| 93 | func TestEmptyConfig(t *testing.T) { |
| 94 | testee := metadataStore{root: t.TempDir()} |
nothing calls this directly
no test coverage detected
searching dependent graphs…