proxygen
JsonTestUtil.h File Reference
#include <folly/Range.h>
#include <folly/dynamic.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define FOLLY_EXPECT_JSON_EQ(json1, json2)   EXPECT_PRED2(::folly::compareJson, json1, json2)
 
#define FOLLY_EXPECT_JSON_NEAR(json1, json2, tolerance)   EXPECT_PRED3(::folly::compareJsonWithTolerance, json1, json2, tolerance)
 

Functions

bool folly::compareJson (StringPiece json1, StringPiece json2)
 
bool folly::compareJsonWithTolerance (StringPiece json1, StringPiece json2, double tolerance)
 
bool folly::compareDynamicWithTolerance (const dynamic &obj1, const dynamic &obj2, double tolerance)
 

Macro Definition Documentation

#define FOLLY_EXPECT_JSON_EQ (   json1,
  json2 
)    EXPECT_PRED2(::folly::compareJson, json1, json2)

GTest helpers. Note that to use them you'll need to include the gtest headers yourself.

Definition at line 68 of file JsonTestUtil.h.

Referenced by TEST().

#define FOLLY_EXPECT_JSON_NEAR (   json1,
  json2,
  tolerance 
)    EXPECT_PRED3(::folly::compareJsonWithTolerance, json1, json2, tolerance)

Definition at line 71 of file JsonTestUtil.h.

Referenced by TEST().