Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add optional matcher #508

Merged
merged 22 commits into from Sep 26, 2020
Merged

add optional matcher #508

merged 22 commits into from Sep 26, 2020

Conversation

srz-zumix
Copy link
Owner

#73

typedef T value_type;
public:
optional() IUTEST_CXX_NOEXCEPT_SPEC : m_ptr(NULL) {}
optional(nullpot_t) IUTEST_CXX_NOEXCEPT_SPEC : m_ptr(NULL) {}

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Single-parameter constructors should be marked explicit. [runtime/explicit] [5]

class OptionalMatcher : public IMatcher
{
public:
OptionalMatcher(const T& expected)

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Single-parameter constructors should be marked explicit. [runtime/explicit] [5]

typedef T value_type;
public:
optional() IUTEST_CXX_NOEXCEPT_SPEC : m_ptr(NULL) {}
optional(nullpot_t) IUTEST_CXX_NOEXCEPT_SPEC : m_ptr(NULL) {}
Copy link

Choose a reason for hiding this comment

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

[cpplint] Single-parameter constructors should be marked explicit. (view)

Rule Confidence
runtime/explicit 5

You can close this issue if no need to fix it. Learn more.

class OptionalMatcher : public IMatcher
{
public:
OptionalMatcher(const T& expected)
Copy link

Choose a reason for hiding this comment

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

[cpplint] Single-parameter constructors should be marked explicit. (view)

Rule Confidence
runtime/explicit 5

You can close this issue if no need to fix it. Learn more.

@codecov
Copy link

codecov bot commented Sep 21, 2020

Codecov Report

Merging #508 into develop will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #508   +/-   ##
========================================
  Coverage    96.89%   96.90%           
========================================
  Files          220      220           
  Lines        11263    11297   +34     
========================================
+ Hits         10913    10947   +34     
  Misses         350      350           
Impacted Files Coverage Δ
include/internal/iutest_option_message.hpp 100.00% <ø> (ø)
include/internal/iutest_stdlib.hpp 100.00% <ø> (ø)
include/iutest_matcher.hpp 99.43% <100.00%> (+0.02%) ⬆️
test/matcher_tests.cpp 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdc1408...1a44112. Read the comment docs.

@srz-zumix srz-zumix merged commit ef47b15 into develop Sep 26, 2020
@srz-zumix srz-zumix deleted the feature/optional_matcher branch September 26, 2020 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant