Create a test dumper appending a suffix to the bytes representation.
(suffix)
| 527 | |
| 528 | |
| 529 | def make_dumper(suffix): |
| 530 | """Create a test dumper appending a suffix to the bytes representation.""" |
| 531 | |
| 532 | class TestDumper(Dumper): |
| 533 | oid = builtins["text"].oid |
| 534 | format = pq.Format.TEXT |
| 535 | |
| 536 | def dump(self, s): |
| 537 | return (s + suffix).encode("ascii") |
| 538 | |
| 539 | return TestDumper |
| 540 | |
| 541 | |
| 542 | def make_bin_dumper(suffix): |
no outgoing calls
no test coverage detected
searching dependent graphs…