(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestAllTag(t *testing.T) { |
| 68 | for _, test := range []struct { |
| 69 | path string |
| 70 | want string |
| 71 | }{ |
| 72 | {"a/b/c.txt", "1a/1b/1c.txt"}, |
| 73 | } { |
| 74 | ctx, err := newOptions("all,prefix=1") |
| 75 | require.NoError(t, err) |
| 76 | |
| 77 | got := Path(ctx, test.path, false) |
| 78 | assert.Equal(t, test.want, got) |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | func TestFileTagOnDir(t *testing.T) { |
| 83 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…