Move name truncating functionality in a utility function and add tests · python/codespeed@36007a0 · GitHub
Skip to content

Commit 36007a0

Browse files
committed
Move name truncating functionality in a utility function and add tests
for it. This way it's easier to test those functions and also gives us more flexibility to introduce different truncating mechanism (e.g. truncate in the middle instead of at the end).
1 parent 2877ec4 commit 36007a0

2 files changed

Lines changed: 71 additions & 8 deletions

File tree

codespeed/tests/test_views_data.py

Lines changed: 25 additions & 0 deletions

codespeed/views_data.py

Lines changed: 46 additions & 8 deletions

0 commit comments

Comments
 (0)