| 1 | from pytest_codspeed import BenchmarkFixture |
| 2 | |
| 3 | from bluetooth_data_tools import short_address |
| 4 | |
| 5 | |
| 6 | def test_short_address_colon(benchmark: BenchmarkFixture) -> None: |
| 7 | benchmark(lambda: short_address("AA:BB:CC:DD:EE:FF")) |
| 8 | |
| 9 | |
| 10 | def test_short_address_dash(benchmark: BenchmarkFixture) -> None: |
| 11 | benchmark(lambda: short_address("AA-BB-CC-DD-EE-FF")) |