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

Reduce boilerplate in collections in mixed unit test #7421

Merged

Conversation

jbreams
Copy link
Contributor

@jbreams jbreams commented Mar 6, 2024

What, How & Why?

@danieltabacaru, I did some futzing with the collections in mixed transform unit tests so there's less boilerplate in each test to have to read/review. If you think this is an improvement I'll keep reviewing collections in mixed after this is merged.

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

Copy link

Pull Request Test Coverage Report for Build jonathan.reams_3064

Details

  • 348 of 348 (100.0%) changed or added relevant lines in 1 file are covered.
  • 78 unchanged lines in 16 files lost coverage.
  • Overall coverage decreased (-0.04%) to 91.769%

Files with Coverage Reduction New Missed Lines %
test/test_dictionary.cpp 1 99.85%
src/realm/group.cpp 2 91.23%
src/realm/list.cpp 2 88.62%
src/realm/object-store/shared_realm.cpp 2 93.05%
src/realm/query_engine.hpp 2 93.73%
src/realm/sync/noinst/client_impl_base.cpp 2 85.76%
src/realm/sync/noinst/server/server_history.cpp 2 67.94%
src/realm/table_view.cpp 2 94.18%
test/object-store/util/test_file.cpp 2 89.2%
src/realm/sync/noinst/protocol_codec.hpp 3 76.63%
Totals Coverage Status
Change from base Build daniel.tabacaru_767: -0.04%
Covered Lines: 241930
Relevant Lines: 263629

💛 - Coveralls

@jbreams jbreams merged commit 707790c into dt/sync_collections_in_mixed Mar 6, 2024
38 of 42 checks passed
@jbreams jbreams deleted the jbr/scim_test_boilerplate_reduction branch March 6, 2024 21:49
danieltabacaru added a commit that referenced this pull request Mar 12, 2024
* Update the merge nested rules to handle sentinel instructions on conflicting data types

* Allow syncing nested collections and collections in mixed

* Add integration tests with the legacy sync server

* Do not expose set_collection on a dictionary

* Fix OT rule for add_int on Mixed fields

* Small fixes

* Fix linting errors

* Apply Clear instructions received from the server on nested collections

* Add OT rule Clear vs Update

* Reduce boilerplate in collections in mixed unit test (#7421)

* Document unit-tests

* Changes after code review

* Fix test comments & update changelog

---------

Co-authored-by: Jonathan Reams <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants