Skip to content
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

add initial assertion library #148

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

MKrupauskas
Copy link

@MKrupauskas MKrupauskas commented Aug 18, 2024

Adds initial test assertion library. Closes #147 and more context in the issue.

This PR just introduces the library to make reviews easier. It will be used in another PR after this.

Unit tested.

$ make unittest
=== RUN   TestEqual
=== RUN   TestEqual/equal
=== RUN   TestEqual/not_equal_shallow
=== RUN   TestEqual/not_equal_deep
=== RUN   TestEqual/with_message
=== RUN   TestEqual/with_message_and_args
=== RUN   TestEqual/only_args
--- PASS: TestEqual (0.00s)
    --- PASS: TestEqual/equal (0.00s)
    --- PASS: TestEqual/not_equal_shallow (0.00s)
    --- PASS: TestEqual/not_equal_deep (0.00s)
    --- PASS: TestEqual/with_message (0.00s)
    --- PASS: TestEqual/with_message_and_args (0.00s)
    --- PASS: TestEqual/only_args (0.00s)
=== RUN   TestNoError
=== RUN   TestNoError/no_error
=== RUN   TestNoError/with_error
=== RUN   TestNoError/with_message
=== RUN   TestNoError/with_message_and_args
=== RUN   TestNoError/only_args
--- PASS: TestNoError (0.00s)
    --- PASS: TestNoError/no_error (0.00s)
    --- PASS: TestNoError/with_error (0.00s)
    --- PASS: TestNoError/with_message (0.00s)
    --- PASS: TestNoError/with_message_and_args (0.00s)
    --- PASS: TestNoError/only_args (0.00s)
PASS
coverage: 100.0% of statements
ok      github.com/go-zookeeper/zk/internal/assert      1.371s  coverage: 100.0% of statements

Copy link

codecov bot commented Aug 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.71%. Comparing base (27bc0d6) to head (30e5002).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   79.12%   79.71%   +0.59%     
==========================================
  Files           8        9       +1     
  Lines        1365     1385      +20     
==========================================
+ Hits         1080     1104      +24     
+ Misses        196      193       -3     
+ Partials       89       88       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jeffbean jeffbean merged commit 6d30b8b into go-zookeeper:master Aug 19, 2024
9 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.

Add test assertion library
2 participants