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