Skip to content

state_test: convert state_object subclasses to take cvc::app& and use StateObjectFixture - #27

Merged
transfix merged 1 commit into
masterfrom
cvc-singleton/state-object-test-fixture
May 2, 2026
Merged

transfix merged 1 commit into
masterfrom
cvc-singleton/state-object-test-fixture

Conversation

@transfix

@transfix transfix commented May 2, 2026

Copy link
Copy Markdown
Owner

Adds a StateObjectFixture (with cvc::app ctx member) and converts all TEST(StateTest, ...) using state_object subclasses to TEST_F(StateObjectFixture, ...).

  • 8 test subclasses + nested TypeA/TypeB now take (cvc::app&) and forward to state_object<X>(ctx) instead of relying on the 1-arg default ctor.
  • 31 TEST -> TEST_F conversions; ~38 instantiation sites updated to pass ctx (including std::make_shared<ThreadingTestObject>(ctx)).

Precursor to deleting state_object<>'s default ctor at state_object.h:218 (blocked on volrover3 SceneNode migration).

Local: 590/590 ctest passing.

… StateObjectFixture

Adds a StateObjectFixture (with cvc::app ctx member) and converts all

TEST(StateTest, ...) using state_object subclasses to TEST_F(StateObjectFixture, ...).

- 8 test subclasses + nested TypeA/TypeB now take (cvc::app&) and forward

  to state_object<X>(ctx) instead of relying on the 1-arg default ctor.

- 31 TEST -> TEST_F conversions; ~38 instantiation sites updated to pass ctx

  (including std::make_shared<ThreadingTestObject>(ctx)).

Precursor to deleting state_object<>'s default ctor at state_object.h:218

(blocked on volrover3 SceneNode migration).
@transfix
transfix merged commit ccaefba into master May 2, 2026
19 checks passed
@transfix
transfix deleted the cvc-singleton/state-object-test-fixture branch May 2, 2026 22:20
transfix added a commit that referenced this pull request May 2, 2026
…nce() (#29)

All callers now pass a cvc::app& explicitly:

- libcvc internal subclasses: see PR #25 (algorithm) and tests refactored in #27.

- volrover3 SceneNode hierarchy migrated in #28.

590/590 ctest passing locally.
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.

1 participant