MCPcopy Create free account
hub / github.com/boostorg/json / testPath

Method testPath

test/value_from.cpp:586–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584
585 template< class... Context >
586 static
587 void testPath( Context const& ... ctx )
588 {
589 ignore_unused( ctx... );
590#ifndef BOOST_NO_CXX17_HDR_FILESYSTEM
591 std::vector<std::filesystem::path> paths{
592 "from/here", "to/there", "", "c:/" , "..", "../"};
593 value jv = value_from( paths, ctx... );
594 BOOST_TEST(
595 jv == (value{"from/here", "to/there", "", "c:/" , "..", "../"}) );
596#endif // BOOST_NO_CXX17_HDR_FILESYSTEM
597 }
598
599 void
600 testContext()

Callers

nothing calls this directly

Calls 1

value_fromFunction · 0.85

Tested by

no test coverage detected