Skip to content

TestModelTestingCriteria.testAddingAndUpdatingAndRunningTestingSchemes has GMOCK warnings #1143

@reneSchm

Description

@reneSchm

Bug description

The test throws warnings, it is possibly miss-configured or otherwise outdated.

Version

Any

To reproduce

Build and run tests, then view TestModelTestingCriteria.testAddingAndUpdatingAndRunningTestingSchemes.

Relevant log output

[----------] 1 test from TestModelTestingCriteria
[ RUN      ] TestModelTestingCriteria.testAddingAndUpdatingAndRunningTestingSchemes

GMOCK WARNING:
/home/runner/work/memilio/memilio/cpp/tests/test_abm_model.cpp:465: Actions ran out in EXPECT_CALL(mock_uniform_dist.get_mock(), invoke)...
Called 3 times, but only 2 WillOnce()s are specified - returning default value.
Stack trace:

GMOCK WARNING:
/home/runner/work/memilio/memilio/cpp/tests/test_abm_model.cpp:465: Actions ran out in EXPECT_CALL(mock_uniform_dist.get_mock(), invoke)...
Called 4 times, but only 2 WillOnce()s are specified - returning default value.
Stack trace:

GMOCK WARNING:
/home/runner/work/memilio/memilio/cpp/tests/test_abm_model.cpp:465: Actions ran out in EXPECT_CALL(mock_uniform_dist.get_mock(), invoke)...
Called 5 times, but only 2 WillOnce()s are specified - returning default value.
Stack trace:
[       OK ] TestModelTestingCriteria.testAddingAndUpdatingAndRunningTestingSchemes (0 ms)
[----------] 1 test from TestModelTestingCriteria (0 ms total)

Add any relevant information, e.g. used compiler, screenshots.

No response

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

No one assigned

    Labels

    class::bugBugs found in the softwareloc::backendThis issue concerns the C++ backend implementation.model::abmThis issue concerns any kind of agent-based model.

    Type

    No type

    Projects

    Status

    Done (Total) 💯

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions