(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestDirTagOnFile(t *testing.T) { |
| 53 | for _, test := range []struct { |
| 54 | path string |
| 55 | want string |
| 56 | }{ |
| 57 | {"a/b/c.txt", "1a/1b/c.txt"}, |
| 58 | } { |
| 59 | ctx, err := newOptions("dir,prefix=1") |
| 60 | require.NoError(t, err) |
| 61 | |
| 62 | got := Path(ctx, test.path, false) |
| 63 | assert.Equal(t, test.want, got) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func TestAllTag(t *testing.T) { |
| 68 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…