template <RegistersType Regs, class Matcher>

class HasRegistersMatcher

Defined at line 135 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h

HasRegisters() just checks that the registers can be fetched at all, which

requires a stopped thread. HasRegister

<zx

_thread_state_*_regs_t>() can

specify which registers, the default being zx_thread_state_general_regs_t.

With a matcher argument, that matcher is applied to the ..._regs_t type.

Public Methods

void HasRegistersMatcher<Regs, Matcher> (Matcher matcher)

Defined at line 139 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h

template <auto&& arg>
bool MatchAndExplain (auto && arg, ::testing::MatchResultListener * result_listener)

Defined at line 141 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h

bool MatchAndExplain (zx::result<Regs> regs, ::testing::MatchResultListener * result_listener)

Defined at line 149 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h

void DescribeTo (std::ostream * os)

Defined at line 158 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h

void DescribeNegationTo (std::ostream * os)

Defined at line 165 of file ../../src/lib/captive-thread/testing/include/lib/captive-thread/testing/matchers.h