diff options
author | Daniel Latypov <dlatypov@google.com> | 2022-11-03 10:47:38 -0700 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-12-12 14:13:47 -0700 |
commit | f473dd9488d910aab109e8c6a2e4181125ca322a (patch) | |
tree | 611c846a1f883dcf850a081d62a68942ba33fad4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f19dd011d8de6f0c1d20abea5158aa4f5d9cea44 (diff) |
kunit: tool: make TestCounts a dataclass
Since we're using Python 3.7+, we can use dataclasses to tersen the
code.
It also lets us create pre-populated TestCounts() objects and compare
them in our unit test. (Before, you could only create empty ones).
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions