folly::PrintTo

Printer for GTest.

Synopsis

Declared in <folly/json/json.h>

void
PrintTo(
    dynamic const& value,
    std::ostream* os);

Description

Uppercase name to fill GTest's API, which calls this method through ADL.

Parameters

NameDescription
valueThe dynamic value to print.
osThe stream that the printed value is written to.