MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / TestPropertyKeyIs

Class TestPropertyKeyIs

tests/gtest/gtest-all.cc:740–754  ·  view source on GitHub ↗

A predicate that checks the key of a TestProperty against a known key. TestPropertyKeyIs is copyable.

Source from the content-addressed store, hash-verified

738//
739// TestPropertyKeyIs is copyable.
740class TestPropertyKeyIs {
741 public:
742 // Constructor.
743 //
744 // TestPropertyKeyIs has NO default constructor.
745 explicit TestPropertyKeyIs(const std::string& key) : key_(key) {}
746
747 // Returns true iff the test name of test property matches on key_.
748 bool operator()(const TestProperty& test_property) const {
749 return test_property.key() == key_;
750 }
751
752 private:
753 std::string key_;
754};
755
756// Class UnitTestOptions.
757//

Callers 1

RecordPropertyMethod · 0.85

Calls

no outgoing calls

Tested by 1

RecordPropertyMethod · 0.68