Expand Google Test coverage across core subsystems
Add and extend unit tests for: - Task manager (failed tasks, progress signals, multiple tasks) - Undo stack (multiple undo/redo, push-after-undo, clear, multi-command) - Config defaults and graphics backend string conversion - Node keyframe serialization and default state - Node value string round-trips and table operations - Node globals and project settings/serialization - Timeline coordinate, workarea, and marker commands - Color LUT processor and OCIO transform handling - Common utilities (range, file functions, Qt helpers, XML utils) - Render enums (loop mode, alpha association) - Shader resource availability - Module smoke tests for Tool and HumanStrings All tests pass including RenderWorkerFootage GPU worker tests after rebuilding the stale olive-render-worker binary.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "common/range.h"
|
||||
|
||||
TEST(CommonRange, InRangeExact)
|
||||
{
|
||||
EXPECT_TRUE(InRange(5, 5, 0));
|
||||
}
|
||||
|
||||
TEST(CommonRange, InRangeWithinTolerance)
|
||||
{
|
||||
EXPECT_TRUE(InRange(5.0, 5.5, 1.0));
|
||||
EXPECT_TRUE(InRange(5.0, 4.5, 1.0));
|
||||
}
|
||||
|
||||
TEST(CommonRange, OutOfRange)
|
||||
{
|
||||
EXPECT_FALSE(InRange(5.0, 7.0, 1.0));
|
||||
EXPECT_FALSE(InRange(5.0, 3.0, 1.0));
|
||||
}
|
||||
|
||||
TEST(CommonRange, BoundaryValues)
|
||||
{
|
||||
EXPECT_TRUE(InRange(5.0, 6.0, 1.0));
|
||||
EXPECT_TRUE(InRange(5.0, 4.0, 1.0));
|
||||
}
|
||||
Reference in New Issue
Block a user