xcal
基于 C++23 的现代图形渲染引擎
|
#include <gtest/gtest.h>
#include <xcal/property/time_duration.hpp>
#include <xcal/property/time_point.hpp>
函数 | |
TEST (TestTimePoint, CreateWithDefaultValues) | |
时间点属性测试套件 | |
TEST (TestTimePoint, CreateFromFloatSeconds) | |
TEST (TestTimePoint, SetterMethods) | |
TEST (TestTimePoint, TimePointSubtraction) | |
TEST (TestTimePoint, ComparisonOperations) | |
TEST (TestTimePoint, ToStringConversion) | |
TEST (TestTimePoint, FormatMethod) | |
TEST (TestTimePoint, PrecisionConversion) | |
TEST | ( | TestTimePoint | , |
ComparisonOperations | |||
) |
TEST | ( | TestTimePoint | , |
CreateFromFloatSeconds | |||
) |
TEST | ( | TestTimePoint | , |
CreateWithDefaultValues | |||
) |
时间点属性测试套件
测试 TimePoint 类的创建、属性访问和运算功能。
在文件 test_time_point.cc 第 11 行定义.
引用了 xcal::property::TimePoint::microseconds_since_epoch() , 以及 xcal::property::TimePoint::seconds_since_epoch().
TEST | ( | TestTimePoint | , |
FormatMethod | |||
) |
TEST | ( | TestTimePoint | , |
PrecisionConversion | |||
) |
TEST | ( | TestTimePoint | , |
SetterMethods | |||
) |
TEST | ( | TestTimePoint | , |
TimePointSubtraction | |||
) |
TEST | ( | TestTimePoint | , |
ToStringConversion | |||
) |