(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestFileTagOnFile(t *testing.T) { |
| 38 | for _, test := range []struct { |
| 39 | path string |
| 40 | want string |
| 41 | }{ |
| 42 | {"a/b/c.txt", "a/b/1c.txt"}, |
| 43 | } { |
| 44 | ctx, err := newOptions("file,prefix=1") |
| 45 | require.NoError(t, err) |
| 46 | |
| 47 | got := Path(ctx, test.path, false) |
| 48 | assert.Equal(t, test.want, got) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func TestDirTagOnFile(t *testing.T) { |
| 53 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…