Skip to content

test stored_logs #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 15, 2025
Merged

test stored_logs #138

merged 5 commits into from
Jul 15, 2025

Conversation

jrr
Copy link
Collaborator

@jrr jrr commented May 26, 2025

Gradually working toward #133, this PR moves stored_logs.cpp to the library and adds a few unit tests.

I wrapped the preferences access behind a new Persistence interface, so that unit tests can use a mock in-memory alternative. For now it's only used for stored_logs, but in the future it could be used to help make other areas of the app testable.

@jrr jrr force-pushed the testable-stored-logs branch 4 times, most recently from 46f99de to 5929f6d Compare May 31, 2025 12:23
@jrr jrr force-pushed the testable-stored-logs branch 3 times, most recently from 7a298bc to 75e0c96 Compare June 9, 2025 23:48
@jrr jrr force-pushed the testable-stored-logs branch 6 times, most recently from b4d1d91 to 1ee5fa0 Compare June 25, 2025 03:55
@jrr jrr force-pushed the testable-stored-logs branch 4 times, most recently from 2ec3373 to d1b0d1c Compare July 3, 2025 15:21
@jrr jrr force-pushed the testable-stored-logs branch from d1b0d1c to 73954e9 Compare July 4, 2025 16:03
@jrr jrr force-pushed the testable-stored-logs branch 2 times, most recently from b467394 to d88a3cd Compare July 10, 2025 04:55
@jrr jrr mentioned this pull request Jul 10, 2025
@jrr jrr force-pushed the testable-stored-logs branch from d88a3cd to d75c7d5 Compare July 11, 2025 04:10
@Fr3dr1ckson Fr3dr1ckson merged commit c2c6e2e into usetrmnl:main Jul 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants