MCPcopy Create free account
hub / github.com/apache/brpc / Value

Class Value

test/flat_map_unittest.cpp:913–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911int n_des = 0;
912int n_cp = 0;
913struct Value {
914 Value() : x_(0) { ++n_con; }
915 Value(int x) : x_(x) { ++ n_con; }
916 Value (const Value& rhs) : x_(rhs.x_) { ++ n_cp_con; }
917 ~Value() {
918 ++ n_des;
919 // CHECK(false);
920 }
921
922 Value& operator= (const Value& rhs) {
923 x_ = rhs.x_;
924 ++ n_cp;
925 return *this;
926 }
927
928 bool operator== (const Value& rhs) const { return x_ == rhs.x_; }
929 bool operator!= (const Value& rhs) const { return x_ != rhs.x_; }
930
931friend std::ostream& operator<< (std::ostream& os, const Value& v)
932 { return os << v.x_; }
933
934 int x_;
935};
936
937int n_con_key = 0;
938int n_cp_con_key = 0;

Callers 2

TEST_FFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.50

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.56