MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / TestPropertyKeyIs

Class TestPropertyKeyIs

test/common/gtest/gtest.cpp:753–767  ·  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

751//
752// TestPropertyKeyIs is copyable.
753class TestPropertyKeyIs {
754 public:
755 // Constructor.
756 //
757 // TestPropertyKeyIs has NO default constructor.
758 explicit TestPropertyKeyIs(const std::string& key) : key_(key) {}
759
760 // Returns true iff the test name of test property matches on key_.
761 bool operator()(const TestProperty& test_property) const {
762 return test_property.key() == key_;
763 }
764
765 private:
766 std::string key_;
767};
768
769// Class UnitTestOptions.
770//

Callers 1

RecordPropertyMethod · 0.85

Calls

no outgoing calls

Tested by 1

RecordPropertyMethod · 0.68