(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestIsRootChild(t *testing.T) { |
| 8 | testCases := map[OpPath]bool{ |
| 9 | "": false, |
| 10 | ".baz": true, |
| 11 | "$baz": true, |
| 12 | "$": false, |
| 13 | "*.baz": false, |
| 14 | } |
| 15 | |
| 16 | for input, expected := range testCases { |
| 17 | actual := input.isRootChild() |
| 18 | if expected != actual { |
| 19 | t.Errorf("TestCase %s\nactual:%t\nexpected:%t", input, actual, expected) |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func TestGetChildName(t *testing.T) { |
| 25 | testCases := map[OpPath]string{ |
nothing calls this directly
no test coverage detected