MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / TEST

Function TEST

gtests/HexFloat.cpp:242–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 })));
241
242TEST(HexFloatStreamTest, OperatorLeftShiftPreservesFloatAndFill) {
243 std::stringstream s;
244 s << std::setw(4) << std::oct << std::setfill('x') << 8 << " "
245 << FloatProxy<float>(uint32_t(0xFF800100)) << " " << std::setw(4) << 9;
246 EXPECT_THAT(s.str(), Eq(std::string("xx10 -0x1.0002p+128 xx11")));
247}
248
249TEST(HexDoubleStreamTest, OperatorLeftShiftPreservesFloatAndFill) {
250 std::stringstream s;

Callers

nothing calls this directly

Calls 13

unbiased_exponentFunction · 0.85
unbiased_half_exponentFunction · 0.85
bits_setFunction · 0.85
normalized_significandFunction · 0.85
set_from_signFunction · 0.85
float_fractionsFunction · 0.85
getAsFloatMethod · 0.80
castToMethod · 0.80
valueMethod · 0.80
dataMethod · 0.45
isNanMethod · 0.45

Tested by

no test coverage detected