(self, nulls=0)
| 208 | self.records = [self.make_record(nulls=0.05) for i in range(nrecords)] |
| 209 | |
| 210 | def make_record(self, nulls=0): |
| 211 | if not nulls: |
| 212 | return tuple(self.example(spec) for spec in self.schema) |
| 213 | else: |
| 214 | return tuple( |
| 215 | self.make(spec) if random() > nulls else None for spec in self.schema |
| 216 | ) |
| 217 | |
| 218 | def assert_record(self, got, want): |
| 219 | for spec, g, w in zip(self.schema, got, want): |
no test coverage detected