(self, result, profiles, tests)
| 137 | |
| 138 | class ProfileMapV2Tests(unittest.TestCase): |
| 139 | def assert_result(self, result, profiles, tests): |
| 140 | self.assertIs(type(result), M.ProducedMap) |
| 141 | self.assertIs(type(result.profiles_tsv), bytes) |
| 142 | self.assertIs(type(result.tests_tsv), bytes) |
| 143 | self.assertIs(type(result.profiles_sha256), bytes) |
| 144 | self.assertIs(type(result.tests_sha256), bytes) |
| 145 | self.assertEqual(result.profiles_tsv, profiles) |
| 146 | self.assertEqual(result.tests_tsv, tests) |
| 147 | self.assertEqual(result.profiles_sha256, hashlib.sha256(profiles).digest()) |
| 148 | self.assertEqual(result.tests_sha256, hashlib.sha256(tests).digest()) |
| 149 | self.assertEqual(len(result.profiles_sha256), 32) |
| 150 | self.assertEqual(len(result.tests_sha256), 32) |
| 151 | |
| 152 | def gold(self): |
| 153 | result = M.build_profile_map_v2(**gold_fixture()) |
no test coverage detected