In the documentation of GoogleTest I found this:
SUCCEED();
Generates a success. This does NOT make the overall test succeed. A test is considered successful only if none of its assertions fail during its execution.
Does this mean unless an assertion fails, there's no way to end a test early?
Google Test defines "success" as "no failures".
(So, simply returning is sufficient.)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.