13 std::string _message =
"";
30 const char*
message()
const override {
return _message.c_str(); }
36 return new SpecRunResult(_component, _group, _spec, _status, _message);
39 inline static std::unique_ptr<SpecRunResult>
passed(
45 inline static std::unique_ptr<SpecRunResult>
failed(
48 return std::make_unique<SpecRunResult>(
53 inline static std::unique_ptr<SpecRunResult>
not_run(
59 inline static std::unique_ptr<SpecRunResult>
timeout(
62 return std::make_unique<SpecRunResult>(
const char * message() const override
static std::unique_ptr< SpecRunResult > timeout(ISpecComponent *component, ISpecGroup *group, ISpec *spec)
SpecRunResult(ISpecComponent *component, ISpecGroup *group, ISpec *spec, RunResultStatus status, std::string_view message="")
ISpecComponent * component() const override
static std::unique_ptr< SpecRunResult > passed(ISpecComponent *component, ISpecGroup *group, ISpec *spec)
ISpecGroup * group() const override
static std::unique_ptr< SpecRunResult > not_run(ISpecComponent *component, ISpecGroup *group, ISpec *spec)
static std::unique_ptr< SpecRunResult > failed(ISpecComponent *component, ISpecGroup *group, ISpec *spec, std::string_view message="")
ISpec * spec() const override
ISpecRunResult * copy() const override
RunResultStatus status() const override