-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Project name updated from "olg_scheduler" to "olga_scheduler" across the application. - Test executables and associated files renamed accordingly. - **Documentation** - Updated project references in the README to reflect the new name. - Added an image of "Olga of Kiev" in the README. - **Bug Fixes** - Ensured consistent namespace usage throughout the codebase, maintaining functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
9a63e04
commit d4eab58
Showing
5 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright (c) 2024 Zubax Robotics <[email protected]> | ||
|
||
cmake_minimum_required(VERSION 3.12) | ||
project(olg_scheduler_tests C CXX) | ||
project(olga_scheduler_tests C CXX) | ||
enable_testing() | ||
|
||
set(CTEST_OUTPUT_ON_FAILURE ON) | ||
|
@@ -47,14 +47,14 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-conversion -Wcast-align -Wmissing | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wtype-limits -Wnon-virtual-dtor -Woverloaded-virtual") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes") | ||
|
||
add_executable(test_olg_scheduler_cpp20 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_olg_scheduler.cpp) | ||
set_target_properties(test_olg_scheduler_cpp20 PROPERTIES CXX_STANDARD 20) | ||
target_include_directories(test_olg_scheduler_cpp20 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/olg_scheduler) | ||
target_include_directories(test_olg_scheduler_cpp20 SYSTEM PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/cavl) | ||
target_link_libraries(test_olg_scheduler_cpp20 | ||
add_executable(test_olga_scheduler_cpp20 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_olga_scheduler.cpp) | ||
set_target_properties(test_olga_scheduler_cpp20 PROPERTIES CXX_STANDARD 20) | ||
target_include_directories(test_olga_scheduler_cpp20 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/olga_scheduler) | ||
target_include_directories(test_olga_scheduler_cpp20 SYSTEM PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/cavl) | ||
target_link_libraries(test_olga_scheduler_cpp20 | ||
PRIVATE | ||
GTest::gmock_main | ||
) | ||
|
||
include(GoogleTest) | ||
gtest_discover_tests(test_olg_scheduler_cpp20) | ||
gtest_discover_tests(test_olga_scheduler_cpp20) |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/// Source: https://github.com/zubax/olg_scheduler | ||
/// Source: https://github.com/zubax/olga_scheduler | ||
/// | ||
/// Copyright (c) 2024 Zubax Robotics <[email protected]> | ||
/// | ||
|
@@ -26,7 +26,7 @@ | |
#include <utility> | ||
#include <variant> | ||
|
||
namespace olg_scheduler | ||
namespace olga_scheduler | ||
{ | ||
|
||
template <typename TimePoint> | ||
|
@@ -362,4 +362,4 @@ class EventLoop final | |
|
||
}; // EventLoop | ||
|
||
} // namespace olg_scheduler | ||
} // namespace olga_scheduler |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/// Source: https://github.com/zubax/olg_scheduler | ||
/// Source: https://github.com/zubax/olga_scheduler | ||
/// | ||
/// Copyright (c) 2024 Zubax Robotics <[email protected]> | ||
/// | ||
|
@@ -15,7 +15,7 @@ | |
/// OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
/// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
#include "olg_scheduler.hpp" | ||
#include "olga_scheduler.hpp" | ||
|
||
#include <gmock/gmock.h> | ||
#include <gtest/gtest.h> | ||
|
@@ -75,10 +75,10 @@ class SteadyClockMock final | |
|
||
} // namespace | ||
|
||
namespace olg_scheduler::verification | ||
namespace olga_scheduler::verification | ||
{ | ||
|
||
TEST(TestOlgScheduler, EventLoopBasic) | ||
TEST(TestOlgaScheduler, EventLoopBasic) | ||
{ | ||
using std::chrono_literals::operator""ms; | ||
|
||
|
@@ -227,7 +227,7 @@ TEST(TestOlgScheduler, EventLoopBasic) | |
EXPECT_FALSE(d); | ||
} | ||
|
||
TEST(TestOlgScheduler, EventLoopTotalOrdering) | ||
TEST(TestOlgaScheduler, EventLoopTotalOrdering) | ||
{ | ||
using std::chrono_literals::operator""ms; | ||
|
||
|
@@ -258,7 +258,7 @@ TEST(TestOlgScheduler, EventLoopTotalOrdering) | |
EXPECT_THAT(c, 5); | ||
} | ||
|
||
TEST(TestOlgScheduler, EventLoopPoll) | ||
TEST(TestOlgaScheduler, EventLoopPoll) | ||
{ | ||
using time_point = SteadyClockMock::time_point; | ||
using std::chrono_literals::operator""ms; | ||
|
@@ -294,7 +294,7 @@ TEST(TestOlgScheduler, EventLoopPoll) | |
EXPECT_THAT(evl.getTree()[0U]->getDeadline().value().time_since_epoch(), 210ms); // Skipped ahead! | ||
} | ||
|
||
TEST(TestOlgScheduler, EventLoopDefer_single_overdue) | ||
TEST(TestOlgaScheduler, EventLoopDefer_single_overdue) | ||
{ | ||
using time_point = SteadyClockMock::time_point; | ||
using std::chrono_literals::operator""ms; | ||
|
@@ -316,7 +316,7 @@ TEST(TestOlgScheduler, EventLoopDefer_single_overdue) | |
EXPECT_THAT(out.approx_now.time_since_epoch(), 1030ms); | ||
} | ||
|
||
TEST(TestOlgScheduler, EventLoopDefer_long_running_callback) | ||
TEST(TestOlgaScheduler, EventLoopDefer_long_running_callback) | ||
{ | ||
using duration = SteadyClockMock::duration; | ||
using std::chrono_literals::operator""ms; | ||
|
@@ -345,7 +345,7 @@ TEST(TestOlgScheduler, EventLoopDefer_long_running_callback) | |
std::make_tuple("b", 20ms, 100ms))); | ||
} | ||
|
||
TEST(TestOlgScheduler, HandleMovement) | ||
TEST(TestOlgaScheduler, HandleMovement) | ||
{ | ||
using duration = SteadyClockMock::duration; | ||
using std::chrono_literals::operator""ms; | ||
|
@@ -417,7 +417,7 @@ TEST(TestOlgScheduler, HandleMovement) | |
EXPECT_THAT(calls, IsEmpty()); | ||
} | ||
|
||
} // namespace olg_scheduler::verification | ||
} // namespace olga_scheduler::verification | ||
|
||
// NOLINTEND(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers) | ||
// NOLINTEND(readability-function-cognitive-complexity, misc-const-correctness) | ||
|