File: assert_old.rst

package info (click to toggle)
criterion 2.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,864 kB
  • sloc: ansic: 17,945; cpp: 774; python: 74; makefile: 25; sh: 19
file content (56 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.. _old-assertions-ref:

Old assertion reference
=======================

.. note::
   This documents the old-but-stable assertion API. This API will eventually
   become deprecated then removed in Criterion 3.0.0. We suggest looking into
   using the new assertion API instead: :ref:`assertions-ref`.

This is an exhaustive list of all assertion macros that Criterion provides.

As each ``assert`` macros have an ``expect`` counterpart with the exact same
number of parameters and name suffix, there is no benefit in adding ``expect``
macros to this list. Hence only ``assert`` macros are represented here.

All ``assert`` macros may take an optional ``printf`` format string and
parameters.

Base Assertions
---------------

.. doxygengroup:: BaseAsserts

Common Assertions
-----------------

.. doxygengroup:: CommonBinAsserts
.. doxygengroup:: CommonUnaryAsserts
.. doxygengroup:: FloatAsserts

String Assertions
-----------------

.. doxygengroup:: StringAsserts

Wide String Assertions
----------------------

.. doxygengroup:: WideStringAsserts

Array Assertions
-----------------

.. doxygengroup:: ArrayAsserts
.. doxygengroup:: SafeArrCmpAsserts

Exception Assertions
--------------------

.. doxygengroup:: ExceptionAsserts

File Assertions
---------------

.. doxygengroup:: FileAsserts