MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

common/ast/navigable_ast_internal_test.cc:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35TEST(NavigableAstRangeTest, BasicIteration) {
36 std::vector<int> values{1, 2, 3};
37 NavigableAstRange<TestRangeTraits> range(absl::MakeConstSpan(values));
38 absl::Span<const int> span(values);
39 auto it = range.begin();
40 EXPECT_EQ(*it, 1.5);
41 EXPECT_EQ(*++it, 2.5);
42 EXPECT_EQ(*++it, 3.5);
43 EXPECT_EQ(++it, range.end());
44 EXPECT_EQ(*--it, 3.5);
45 EXPECT_EQ(*--it, 2.5);
46 EXPECT_EQ(*--it, 1.5);
47 EXPECT_EQ(it, range.begin());
48}
49
50TEST(NodeKind, Stringify) {
51 // Note: the specific values are not important or guaranteed to be stable,

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected