(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestFileTagOnDir(t *testing.T) { |
| 83 | for _, test := range []struct { |
| 84 | path string |
| 85 | want string |
| 86 | }{ |
| 87 | {"a/b", "a/b"}, |
| 88 | } { |
| 89 | ctx, err := newOptions("file,prefix=1") |
| 90 | require.NoError(t, err) |
| 91 | |
| 92 | got := Path(ctx, test.path, true) |
| 93 | assert.Equal(t, test.want, got) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestDirTagOnDir(t *testing.T) { |
| 98 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…