MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / validate

Method validate

unittests/catch.hpp:6360–6372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6358 }
6359
6360 auto validate() const -> Result override {
6361 for( auto const &opt : m_options ) {
6362 auto result = opt.validate();
6363 if( !result )
6364 return result;
6365 }
6366 for( auto const &arg : m_args ) {
6367 auto result = arg.validate();
6368 if( !result )
6369 return result;
6370 }
6371 return Result::ok();
6372 }
6373
6374 using ParserBase::parse;
6375

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected