reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/BinaryFormat/MsgPackWriterTest.cpp
   21   MsgPackWriter() : OStream(Buffer), MPWriter(OStream) {}
   26   EXPECT_EQ(OStream.str(), "\xc0");
   32   EXPECT_EQ(OStream.str(), "\xc3\xc2");
   41     std::string Output = OStream.str();
   51   EXPECT_EQ(OStream.str(), "\xcc\x80");
   57   EXPECT_EQ(OStream.str(), "\xcc\xdd");
   63   EXPECT_EQ(OStream.str(), "\xcc\xff");
   69   EXPECT_EQ(OStream.str(), std::string("\xcd\x01\x00", 3));
   75   EXPECT_EQ(OStream.str(), "\xcd\xab\xcd");
   81   EXPECT_EQ(OStream.str(), "\xcd\xff\xff");
   87   EXPECT_EQ(OStream.str(), std::string("\xce\x00\x01\x00\x00", 5));
   93   EXPECT_EQ(OStream.str(), "\xce\xab\xcd\xef\xba");
   99   EXPECT_EQ(OStream.str(), "\xce\xff\xff\xff\xff");
  105   EXPECT_EQ(OStream.str(),
  112   EXPECT_EQ(OStream.str(), "\xcf\x01\x02\x03\x04\x05\x06\x07\x4a");
  118   EXPECT_EQ(OStream.str(), "\xcf\xff\xff\xff\xff\xff\xff\xff\xff");
  129     std::string Output = OStream.str();
  139   EXPECT_EQ(OStream.str(), "\xd0\xdf");
  145   EXPECT_EQ(OStream.str(), "\xd0\xd8");
  151   EXPECT_EQ(OStream.str(), "\xd0\x80");
  157   EXPECT_EQ(OStream.str(), "\xd1\xff\x7f");
  163   EXPECT_EQ(OStream.str(), "\xd1\xee\xef");
  169   EXPECT_EQ(OStream.str(), std::string("\xd1\x80\x00", 3));
  175   EXPECT_EQ(OStream.str(), "\xd2\xff\xff\x7f\xff");
  181   EXPECT_EQ(OStream.str(), "\xd2\xee\xee\xee\xef");
  187   EXPECT_EQ(OStream.str(), std::string("\xd2\x80\x00\x00\x00", 5));
  193   EXPECT_EQ(OStream.str(), "\xd3\xff\xff\xff\xff\x7f\xff\xff\xff");
  199   EXPECT_EQ(OStream.str(), "\xd3\xee\xee\xee\xee\xee\xee\xee\xef");
  205   EXPECT_EQ(OStream.str(),
  212   EXPECT_EQ(OStream.str(), "\xca\xee\xee\xee\xef");
  218   EXPECT_EQ(OStream.str(), "\xcb\xee\xee\xee\xee\xee\xee\xee\xef");
  224   EXPECT_EQ(OStream.str(), "\xa0");
  230   EXPECT_EQ(OStream.str(), "\xa3"
  238   EXPECT_EQ(OStream.str(), std::string("\xbf") + s);
  245   EXPECT_EQ(OStream.str(), std::string("\xd9\x20") + s);
  251   EXPECT_EQ(OStream.str(), std::string("\xd9\x21") + s);
  257   EXPECT_EQ(OStream.str(), std::string("\xd9\xff") + s);
  263   EXPECT_EQ(OStream.str(), std::string("\xda\x01\x00", 3) + s);
  269   EXPECT_EQ(OStream.str(), std::string("\xda\x01\xff") + s);
  275   EXPECT_EQ(OStream.str(), std::string("\xda\xff\xff") + s);
  281   EXPECT_EQ(OStream.str(), std::string("\xdb\x00\x01\x00\x00", 5) + s);
  287   EXPECT_EQ(OStream.str(), std::string("\xdb\x00\x01\xff\xff", 5) + s);
  293   EXPECT_EQ(OStream.str(), std::string("\xc4\x00", 2) + s);
  299   EXPECT_EQ(OStream.str(), std::string("\xc4\x05") + s);
  305   EXPECT_EQ(OStream.str(), std::string("\xc4\xff") + s);
  311   EXPECT_EQ(OStream.str(), std::string("\xc5\x01\x00", 3) + s);
  317   EXPECT_EQ(OStream.str(), "\xc5\x01\xff" + s);
  323   EXPECT_EQ(OStream.str(), std::string("\xc5\xff\xff") + s);
  329   EXPECT_EQ(OStream.str(), std::string("\xc6\x00\x01\x00\x00", 5) + s);
  335   EXPECT_EQ(OStream.str(), std::string("\xc6\x00\x01\xff\xff", 5) + s);
  340   EXPECT_EQ(OStream.str(), "\x90");
  345   EXPECT_EQ(OStream.str(), "\x94");
  351   EXPECT_EQ(OStream.str(), "\x9f");
  357   EXPECT_EQ(OStream.str(), std::string("\xdc\x00\x10", 3));
  362   EXPECT_EQ(OStream.str(), "\xdc\x01\x11");
  367   EXPECT_EQ(OStream.str(), "\xdc\xff\xff");
  372   EXPECT_EQ(OStream.str(), std::string("\xdd\x00\x01\x00\x00", 5));
  377   EXPECT_EQ(OStream.str(), std::string("\xdd\x00\x01\xff\xff", 5));
  382   EXPECT_EQ(OStream.str(), "\xdd\xff\xff\xff\xff");
  387   EXPECT_EQ(OStream.str(), "\x80");
  392   EXPECT_EQ(OStream.str(), "\x84");
  398   EXPECT_EQ(OStream.str(), "\x8f");
  404   EXPECT_EQ(OStream.str(), std::string("\xde\x00\x10", 3));
  409   EXPECT_EQ(OStream.str(), "\xde\x01\x11");
  414   EXPECT_EQ(OStream.str(), "\xde\xff\xff");
  419   EXPECT_EQ(OStream.str(), std::string("\xdf\x00\x01\x00\x00", 5));
  424   EXPECT_EQ(OStream.str(), std::string("\xdf\x00\x01\xff\xff", 5));
  429   EXPECT_EQ(OStream.str(), std::string("\xdf\xff\xff\xff\xff", 5));
  437   EXPECT_EQ(OStream.str(), std::string("\xd4\x01") + s);
  443   EXPECT_EQ(OStream.str(), std::string("\xd5\x01") + s);
  449   EXPECT_EQ(OStream.str(), std::string("\xd6\x01") + s);
  455   EXPECT_EQ(OStream.str(), std::string("\xd7\x01") + s);
  461   EXPECT_EQ(OStream.str(), std::string("\xd8\x01") + s);
  467   EXPECT_EQ(OStream.str(), std::string("\xc7\x00\x01", 3) + s);
  473   EXPECT_EQ(OStream.str(), std::string("\xc7\x2a\x01") + s);
  479   EXPECT_EQ(OStream.str(), std::string("\xc7\xff\x01") + s);
  485   EXPECT_EQ(OStream.str(), std::string("\xc8\x01\x00\x02", 4) + s);
  491   EXPECT_EQ(OStream.str(), std::string("\xc8\x01\x11\x01") + s);
  497   EXPECT_EQ(OStream.str(), std::string("\xc8\xff\xff\x01") + s);
  503   EXPECT_EQ(OStream.str(), std::string("\xc9\x00\x01\x00\x00\x02", 6) + s);
  507   Writer CompatWriter(OStream, true);
  510   EXPECT_EQ(OStream.str(), std::string("\xda\x00\x20", 3) + s);
  514   Writer CompatWriter(OStream, true);