(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestMetadataRespectJsonAnnotation(t *testing.T) { |
| 67 | testDir := t.TempDir() |
| 68 | testee := metadataStore{root: testDir, config: testCfg} |
| 69 | assert.NilError(t, testee.createOrUpdate(testMetadata("test"))) |
| 70 | bytes, err := os.ReadFile(filepath.Join(testDir, string(contextdirOf("test")), "meta.json")) |
| 71 | assert.NilError(t, err) |
| 72 | assert.Assert(t, is.Contains(string(bytes), "a_very_recognizable_field_name")) |
| 73 | assert.Assert(t, is.Contains(string(bytes), "another_very_recognizable_field_name")) |
| 74 | } |
| 75 | |
| 76 | func TestMetadataList(t *testing.T) { |
| 77 | testee := metadataStore{root: t.TempDir(), config: testCfg} |
nothing calls this directly
no test coverage detected
searching dependent graphs…