| 12 | class Coding {}; |
| 13 | |
| 14 | TEST(Coding, Fixed32) { |
| 15 | std::string s; |
| 16 | for (uint32_t v = 0; v < 100000; v++) { |
| 17 | PutFixed32(&s, v); |
| 18 | } |
| 19 | |
| 20 | const char* p = s.data(); |
| 21 | for (uint32_t v = 0; v < 100000; v++) { |
| 22 | uint32_t actual = DecodeFixed32(p); |
| 23 | ASSERT_EQ(v, actual); |
| 24 | p += sizeof(uint32_t); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | TEST(Coding, Fixed64) { |
| 29 | std::string s; |
nothing calls this directly
no test coverage detected