mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-07 07:41:26 +00:00
manually coerce tests and remove uneeded or ones that will neeed much more work
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "eReplicaComponentType.h"
|
||||
#include "eMovementPlatformState.h"
|
||||
|
||||
class MovingPlatformTest : public GameDependenciesTest {
|
||||
class MovingPlatformCompoenetTest : public GameDependenciesTest {
|
||||
protected:
|
||||
Entity* baseEntity;
|
||||
MovingPlatformComponent* movingPlatformComponent;
|
||||
@@ -44,7 +44,7 @@ protected:
|
||||
/**
|
||||
* Test serialization of a MovingPlatformComponent with m_Serialize = false
|
||||
*/
|
||||
TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeDisabledTest) {
|
||||
TEST_F(MovingPlatformCompoenetTest, SerializeDisabledTest) {
|
||||
bitStream.Reset();
|
||||
|
||||
// Set m_Serialize to false to test the early return path
|
||||
@@ -68,7 +68,7 @@ TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeDisabledTest) {
|
||||
/**
|
||||
* Test serialization of a MovingPlatformComponent with enabled serialization but no path
|
||||
*/
|
||||
TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeNoPathTest) {
|
||||
TEST_F(MovingPlatformCompoenetTest, SerializeNoPathTest) {
|
||||
bitStream.Reset();
|
||||
|
||||
// Create a component with no path to test the path logic
|
||||
@@ -106,7 +106,7 @@ TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeNoPathTest) {
|
||||
/**
|
||||
* Test complete serialization of a MovingPlatformComponent with path
|
||||
*/
|
||||
TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeFullTest) {
|
||||
TEST_F(MovingPlatformCompoenetTest, SerializeFullTest) {
|
||||
bitStream.Reset();
|
||||
|
||||
// Now we test a serialization for correctness.
|
||||
@@ -206,18 +206,3 @@ TEST_F(MovingPlatformTest, MovingPlatformComponentSerializeFullTest) {
|
||||
EXPECT_EQ(moveTimeElapsed, 0.0f); // Always 0 in current implementation
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test MoverSubComponent initialization and basic functionality
|
||||
*/
|
||||
TEST_F(MovingPlatformTest, MoverSubComponentInitializationTest) {
|
||||
auto* moverSubComponent = movingPlatformComponent->GetMoverSubComponent();
|
||||
ASSERT_NE(moverSubComponent, nullptr);
|
||||
|
||||
// Test that we can access and modify the mover sub component
|
||||
moverSubComponent->mState = eMovementPlatformState::Stopped;
|
||||
EXPECT_EQ(moverSubComponent->mState, eMovementPlatformState::Stopped);
|
||||
|
||||
moverSubComponent->mDesiredWaypointIndex = 10;
|
||||
EXPECT_EQ(moverSubComponent->mDesiredWaypointIndex, 10);
|
||||
}
|
Reference in New Issue
Block a user