MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / verify

Method verify

tests/BS_thread_pool_test.cpp:3943–3950  ·  view source on GitHub ↗

* @brief Verify that the command line arguments belong to the list of allowed arguments. * * @return `true` if all arguments are allowed, `false` otherwise. */

Source from the content-addressed store, hash-verified

3941 * @return `true` if all arguments are allowed, `false` otherwise.
3942 */
3943 [[nodiscard]] bool verify() const
3944 {
3945 return std::all_of(args.begin(), args.end(),
3946 [this](const std::string_view arg)
3947 {
3948 return allowed.count(arg) == 1;
3949 });
3950 }
3951
3952private:
3953 struct arg_spec

Callers 1

mainFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected