Repository navigation
state_test: convert state_object subclasses to take cvc::app& and use StateObjectFixture - #27
Merged
Conversation
… 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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
StateObjectFixture(withcvc::app ctxmember) and converts allTEST(StateTest, ...)usingstate_objectsubclasses toTEST_F(StateObjectFixture, ...).TypeA/TypeBnow take(cvc::app&)and forward tostate_object<X>(ctx)instead of relying on the 1-arg default ctor.TEST->TEST_Fconversions; ~38 instantiation sites updated to passctx(includingstd::make_shared<ThreadingTestObject>(ctx)).Precursor to deleting
state_object<>'s default ctor at state_object.h:218 (blocked on volrover3SceneNodemigration).Local: 590/590 ctest passing.