MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / equal

Function equal

tests/runtime/options/test.cpp:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <test_cpp.h>
5
6static bool equal(std::optional<wit::string> const& a, std::optional<std::string_view> const& b) {
7 return a.has_value() == b.has_value() && a->get_view()==b.value();
8}
9
10void exports::test::options::to_test::OptionNoneParam(std::optional<wit::string> a)
11{

Callers 1

OptionSomeParamMethod · 0.70

Calls 2

has_valueMethod · 0.45
get_viewMethod · 0.45

Tested by

no test coverage detected