Greenbone Vulnerability Management Libraries 22.8.0
array_tests.c File Reference
#include "array.c"
#include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
Include dependency graph for array_tests.c:

Go to the source code of this file.

Functions

 Describe (array)
 
 BeforeEach (array)
 
 AfterEach (array)
 
 Ensure (array, make_array_never_returns_null)
 
int main (int argc, char **argv)
 

Function Documentation

◆ AfterEach()

AfterEach ( array  )

Definition at line 15 of file array_tests.c.

16{
17}

◆ BeforeEach()

BeforeEach ( array  )

Definition at line 12 of file array_tests.c.

13{
14}

◆ Describe()

Describe ( array  )

◆ Ensure()

Ensure ( array  ,
make_array_never_returns_null   
)

Definition at line 21 of file array_tests.c.

22{
23 assert_that (make_array (), is_not_null);
24}
GPtrArray * make_array(void)
Make a global array.
Definition: array.c:25

References make_array().

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 29 of file array_tests.c.

30{
31 TestSuite *suite;
32
33 suite = create_test_suite ();
34
35 add_test_with_context (suite, array, make_array_never_returns_null);
36
37 if (argc > 1)
38 return run_single_test (suite, argv[1], create_text_reporter ());
39
40 return run_test_suite (suite, create_text_reporter ());
41}