rev: release-0.15 scopes/doc/module-testing.rst -rw-r--r-- 991 bytes View raw Log this file
e53de6d7cb89 — Leonard Ritter * win32 build fix 1 year, 5 months ago
                                                                                
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
testing
=======

The testing module simplifies writing and running tests in an ad-hoc
fashion.

.. type:: One

   
   this type is used for discovering leaks and double frees. It holds an integer
   value as well as a pointer to a single reference on the heap which is 1 as
   long as the object exists, otherwise 0. The refcount is leaked in
   order to not cause segfaults when a double free occurs.
   
   In addition, a global refcounter is updated which can be checked for balance.

   .. inline:: (__!= cls T)
   .. inline:: (__< cls T)
   .. inline:: (__<= cls T)
   .. inline:: (__== cls T)
   .. inline:: (__> cls T)
   .. inline:: (__>= cls T)
   .. fn:: (__drop self)
   .. fn:: (__repr self)
   .. inline:: (__typecall cls value)
   .. fn:: (check self)
   .. fn:: (refcount)
   .. fn:: (test-refcount-balanced)
   .. fn:: (value self)
.. sugar:: (features ...)
.. sugar:: (test ...)
.. sugar:: (test-compiler-error ...)
.. sugar:: (test-error ...)
.. sugar:: (test-modules ...)