Skip to content

Conversation

@OmarDuran
Copy link
Contributor

@OmarDuran OmarDuran commented Nov 18, 2024

Introduces unit test for RTTypes.hpp. Dedicated tests for runtime type utilities (dynamicCast, type name, regex, enum mapping). Other functions and structures are being tested RTTypes.hpp to augment the test coverage.

@OmarDuran OmarDuran self-assigned this Nov 18, 2024
@OmarDuran OmarDuran requested a review from CusiniM November 18, 2024 22:45
@codecov
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.43%. Comparing base (6d2b61f) to head (5e13840).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3452      +/-   ##
===========================================
+ Coverage    59.37%   59.43%   +0.06%     
===========================================
  Files         1337     1340       +3     
  Lines       110835   111009     +174     
===========================================
+ Hits         65804    65978     +174     
  Misses       45031    45031              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@herve-gross
Copy link
Contributor

Should this PR be pushed?

@OmarDuran OmarDuran requested a review from Copilot November 13, 2025 02:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

OmarDuran and others added 4 commits November 12, 2025 19:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@OmarDuran OmarDuran marked this pull request as ready for review November 13, 2025 05:51
@OmarDuran OmarDuran added the ci: run CUDA builds Allows to triggers (costly) CUDA jobs label Nov 13, 2025
Comment on lines +22 to +23
#include "dataRepository/Group.hpp"
#include "dataRepository/Wrapper.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test must be relocated because of circular dependancy.
I advise src/coreComponents/dataRepository.

Comment on lines +230 to +235
geos::Regex const & r = geos::rtTypes::getTypeRegex< int >( "integer_array2d" );
ASSERT_FALSE( r.m_regexStr.empty() );
std::regex re( r.m_regexStr );
EXPECT_TRUE( std::regex_match( std::string( "{{1,2},{3,4}}" ), re ) );
EXPECT_TRUE( std::regex_match( std::string( " { { 1 , 2 } , { 3 , 4 } } " ), re ) );
EXPECT_FALSE( std::regex_match( std::string( "{1,2,3,4}" ), re ) ); // Not a 2d array pattern
Copy link
Contributor

@MelReyCG MelReyCG Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not adding those formatting tests in the existing testXmlWrapper.cpp?

At least, can you specify the role of the two files (testRTTypes.cpp and testXmlWrapper.cpp) in a doxygen file header, so we know what needs to be tested in each one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run code coverage enables running of the code coverage CI jobs ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI type: testing Unit tests, non-regression testing, ...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants