folly::test::find_resource

Finds the file path of a resource which was built alongside a test binary.

Synopsis

Declared in <folly/testing/TestUtil.h>

fs::path
find_resource(std::string_view resource);

Description

Care must be taken to set up the test and resource build rules in accordance with this function.

Return Value

The file path of the resource.

Parameters

NameDescription
resourceThe name of the resource to locate.