(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestPath(t *testing.T) { |
| 21 | for _, test := range []struct { |
| 22 | path string |
| 23 | want string |
| 24 | }{ |
| 25 | {"", ""}, |
| 26 | {"toe/toe/toe", "tictactoe/tictactoe/tictactoe"}, |
| 27 | {"a/b/c", "tictaca/tictacb/tictacc"}, |
| 28 | } { |
| 29 | ctx, err := newOptions("all,prefix=tac", "all,prefix=tic") |
| 30 | require.NoError(t, err) |
| 31 | |
| 32 | got := Path(ctx, test.path, false) |
| 33 | assert.Equal(t, test.want, got) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func TestFileTagOnFile(t *testing.T) { |
| 38 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…