(t *testing.T)
| 1327 | } |
| 1328 | |
| 1329 | func TestExpressionAsTraversal(t *testing.T) { |
| 1330 | e := &expression{ |
| 1331 | src: &stringVal{ |
| 1332 | Value: "foo.bar[0]", |
| 1333 | }, |
| 1334 | } |
| 1335 | traversal := e.AsTraversal() |
| 1336 | if len(traversal) != 3 { |
| 1337 | t.Fatalf("incorrect traversal %#v; want length 3", traversal) |
| 1338 | } |
| 1339 | } |
| 1340 | |
| 1341 | func TestStaticExpressionList(t *testing.T) { |
| 1342 | e := &expression{ |
nothing calls this directly
no test coverage detected