aboutsummaryrefslogtreecommitdiff
path: root/pw_unit_test
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2023-08-25 23:09:09 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-25 23:09:09 +0000
commitb12cf550fd402b93736d74f3cf706ea8dc5316cd (patch)
tree0ff9c4969a8cfd3494c05d1786d18e2b0bb2a4cf /pw_unit_test
parent4cee35114281aef482c861b6281aabf6a3b1540c (diff)
downloadpigweed-b12cf550fd402b93736d74f3cf706ea8dc5316cd.tar.gz
docs: Use code-block:: instead of code:: everywhere
Change-Id: Ie13b16be60ed98862ee3f6a8496c4862991a6b34 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/168617 Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_unit_test')
-rw-r--r--pw_unit_test/docs.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/pw_unit_test/docs.rst b/pw_unit_test/docs.rst
index b448e445d..d67127521 100644
--- a/pw_unit_test/docs.rst
+++ b/pw_unit_test/docs.rst
@@ -249,7 +249,7 @@ pw_test template
**Example**
-.. code::
+.. code-block::
import("$dir_pw_unit_test/test.gni")
@@ -285,7 +285,7 @@ several sub-targets:
**Example**
-.. code::
+.. code-block::
import("$dir_pw_unit_test/test.gni")
@@ -454,7 +454,7 @@ sub-targets.
**Example**
-.. code::
+.. code-block::
include($ENV{PW_ROOT}/pw_unit_test/test.cmake)
@@ -494,7 +494,7 @@ creates several sub-targets:
**Example**
-.. code::
+.. code-block::
include($ENV{PW_ROOT}/pw_unit_test/test.cmake)
@@ -663,7 +663,7 @@ however some features (such as test suite filtering) are missing.
To set up RPC-based unit tests in your application, instantiate a
``pw::unit_test::UnitTestService`` and register it with your RPC server.
-.. code:: c++
+.. code-block:: c++
#include "pw_rpc/server.h"
#include "pw_unit_test/unit_test_service.h"
@@ -686,7 +686,7 @@ the unit testing RPC service enabled. By default, the results will output via
logging. This method returns a ``TestRecord`` dataclass instance, containing
the results of the test run.
-.. code:: python
+.. code-block:: python
from pw_hdlc.rpc import HdlcRpcClient
from pw_unit_test.rpc import run_tests