Greenbone Vulnerability Management Libraries  11.0.1
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 29 of file array_tests.c.

30 {
31 }

◆ BeforeEach()

BeforeEach ( array  )

Definition at line 26 of file array_tests.c.

27 {
28 }

◆ Describe()

Describe ( array  )

◆ Ensure()

Ensure ( array  ,
make_array_never_returns_null   
)

Definition at line 35 of file array_tests.c.

36 {
37  assert_that (make_array (), is_not_null);
38 }

References make_array().

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 43 of file array_tests.c.

44 {
45  TestSuite *suite;
46 
47  suite = create_test_suite ();
48 
49  add_test_with_context (suite, array, make_array_never_returns_null);
50 
51  if (argc > 1)
52  return run_single_test (suite, argv[1], create_text_reporter ());
53 
54  return run_test_suite (suite, create_text_reporter ());
55 }
make_array
GPtrArray * make_array()
Make a global array.
Definition: array.c:33