#include <cstring>
#include "gmock/gmock.h"
#include "src/tint/lang/core/fluent_types.h"
#include "src/tint/lang/wgsl/reader/parser/helper_test.h"
usingnamespacetint::core::fluent_types;
namespace tint::wgsl::reader {
namespace {
double MakeDouble(uint64_t sign, uint64_t biased_exponent, uint64_t mantissa) { … }
TEST_F(WGSLParserTest, ConstLiteral_Int) { … }
TEST_F(WGSLParserTest, ConstLiteral_Uint) { … }
TEST_F(WGSLParserTest, ConstLiteral_InvalidFloat_IncompleteExponent) { … }
struct FloatLiteralTestCase { … };
inline std::ostream& operator<<(std::ostream& out, FloatLiteralTestCase data) { … }
class ParserImplFloatLiteralTest : public WGSLParserTestWithParam<FloatLiteralTestCase> { … };
TEST_P(ParserImplFloatLiteralTest, Parse) { … }
FloatLiteralTestCaseList;
INSTANTIATE_TEST_SUITE_P(…);
const double NegInf = …;
const double PosInf = …;
FloatLiteralTestCaseList HexFloatCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename ARR>
std::vector<FloatLiteralTestCase> UpperCase0X(const ARR& cases) { … }
UpperCase0XTest;
TEST_F(UpperCase0XTest, Samples) { … }
INSTANTIATE_TEST_SUITE_P(…);
InvalidLiteralTestCase;
class ParserImplInvalidLiteralTest : public WGSLParserTestWithParam<InvalidLiteralTestCase> { … };
TEST_P(ParserImplInvalidLiteralTest, Parse) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(WGSLParserTest, ConstLiteral_FloatHighest) { … }
TEST_F(WGSLParserTest, ConstLiteral_True) { … }
TEST_F(WGSLParserTest, ConstLiteral_False) { … }
TEST_F(WGSLParserTest, ConstLiteral_NoMatch) { … }
}
}