Lines Matching refs:ParseArrayIndex
79 TEST(ParseArrayIndex, NoArrayIndex) in TEST() argument
82 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo", &nameLengthWithoutArrayIndex)); in TEST()
87 TEST(ParseArrayIndex, EmptyString) in TEST() argument
90 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("", &nameLengthWithoutArrayIndex)); in TEST()
95 TEST(ParseArrayIndex, ArrayIndex) in TEST() argument
98 EXPECT_EQ(123u, gl::ParseArrayIndex("foo[123]", &nameLengthWithoutArrayIndex)); in TEST()
103 TEST(ParseArrayIndex, ArrayIndexInMiddle) in TEST() argument
106 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[123].bar", &nameLengthWithoutArrayIndex)); in TEST()
111 TEST(ParseArrayIndex, TrailingWhitespace) in TEST() argument
114 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[123] ", &nameLengthWithoutArrayIndex)); in TEST()
119 TEST(ParseArrayIndex, MultipleArrayIndices) in TEST() argument
122 EXPECT_EQ(34u, gl::ParseArrayIndex("foo[12][34]", &nameLengthWithoutArrayIndex)); in TEST()
128 TEST(ParseArrayIndex, HexArrayIndex) in TEST() argument
131 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[0xff]", &nameLengthWithoutArrayIndex)); in TEST()
137 TEST(ParseArrayIndex, ArrayIndexLeadingPlus) in TEST() argument
140 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[+1]", &nameLengthWithoutArrayIndex)); in TEST()
146 TEST(ParseArrayIndex, ArrayIndexLeadingWhiteSpace) in TEST() argument
149 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[ 0]", &nameLengthWithoutArrayIndex)); in TEST()
155 TEST(ParseArrayIndex, ArrayIndexTrailingWhiteSpace) in TEST() argument
158 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[0 ]", &nameLengthWithoutArrayIndex)); in TEST()
164 TEST(ParseArrayIndex, ArrayIndexBogus) in TEST() argument
167 EXPECT_EQ(GL_INVALID_INDEX, gl::ParseArrayIndex("foo[0bogus]", &nameLengthWithoutArrayIndex)); in TEST()
172 TEST(ParseArrayIndex, ArrayIndexOutOfRange) in TEST() argument
176 gl::ParseArrayIndex("foo[4294967296]", &nameLengthWithoutArrayIndex)); in TEST()