Skip to content

Commit

Permalink
test: Improve testability and overall usability (#37)
Browse files Browse the repository at this point in the history
* test: add rayon for parallelization

Signed-off-by: simonsan <[email protected]>

* refactor: explicitly drop mutex

Signed-off-by: simonsan <[email protected]>

* refactor(id): use ulid instead of uuid v7 due to easier readability and shorter overall length while still keeping sortability.

Signed-off-by: simonsan <[email protected]>

* WIP

Signed-off-by: simonsan <[email protected]>

* WIP

Signed-off-by: simonsan <[email protected]>

* WIP

Signed-off-by: simonsan <[email protected]>

* test: move caluclate_duration to free standing function and implement test cases

Signed-off-by: simonsan <[email protected]>

* test: implement more tests for time conversion and duration calculation

Signed-off-by: simonsan <[email protected]>

* test: implement more tests for time conversion and duration calculation

Signed-off-by: simonsan <[email protected]>

* test: implement tests for overwriting values with overwrite_left_with_right

Signed-off-by: simonsan <[email protected]>

* chore: feature gate rusqlite for better compile times

rusqlite is used for SQLite support in the future, currently we focus on implementing the Toml storage with SQLite as another supported backend in the future. Hence we feature gate it for now and not using it as a default feature.

Signed-off-by: simonsan <[email protected]>

* feat(config): some config changes for better clarity and usability

Signed-off-by: simonsan <[email protected]>

* refactor: utilize ActivityEndOptions for better testability and overall usability

Signed-off-by: simonsan <[email protected]>

* fix(test): duration was too close for tests

Signed-off-by: simonsan <[email protected]>

* start implementing hold and continue for intermissions

Signed-off-by: simonsan <[email protected]>

* chore(deps): update bumpalo

Signed-off-by: simonsan <[email protected]>

---------

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan authored Feb 22, 2024
1 parent 323b8f8 commit ee5b63d
Show file tree
Hide file tree
Showing 45 changed files with 1,608 additions and 555 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build]
rustdocflags = ["--document-private-items"]
# rustflags = "-C target-cpu=native -D warnings"
rustflags = "-D warnings"
# incremental = true
# rustflags = ["-Dwarnings"]
incremental = false

[alias]
xtask = "run --package xtask --"
Expand Down
3 changes: 3 additions & 0 deletions .cliffignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# skip commits by their SHA1

6082708b48b2b9015bb25308666d1fe33f863aa7
Loading

0 comments on commit ee5b63d

Please sign in to comment.