span><span class="p">(</span><span class="n">stringToInteger</span><span class="p">(</span><span class="s">"cow"</span><span class="p">));</span></code> would confirm that an error is raised when trying to convert the non-numeric string to a number value. <code class="language-c++ highlighter-rouge"><span class="n">EXPECT_ERROR</span></code> is used in the specific situation of confirming expected handling of errors within your code.</p>

<h3 id="expect_no_error">EXPECT_NO_ERROR</h3>
<p>The <code class="lan