funkalicious 0.1

readwrite_dotcodefiles.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void libdotcode_readwrite_suite_add_tests (CU_pSuite suite)

Function Documentation

void libdotcode_readwrite_suite_add_tests ( CU_pSuite  suite)

Definition at line 268 of file readwrite_dotcodefiles.c.

References dotcode_free_type(), DOTCODE_GRID, e, read_mone_10x10x10_float8_grid(), read_one_10x10x10_float8_grid(), read_random_10x10x10_float8_grid(), read_zero_10x10x10_float8_grid(), write_mone_10x10x10_float8_grid(), write_one_10x10x10_float8_grid(), write_random_10x10x10_float8_grid(), and write_zero_10x10x10_float8_grid().

Referenced by main().

                                                           {
  CU_add_test(suite, "Writing zero 10x10x10 Float8 Grid", write_zero_10x10x10_float8_grid);
  CU_add_test(suite, "Reading back zero 10x10x10 Float8 Grid", read_zero_10x10x10_float8_grid);
  CU_add_test(suite, "Writing one 10x10x10 Float8 Grid", write_one_10x10x10_float8_grid);
  CU_add_test(suite, "Reading one zero 10x10x10 Float8 Grid", read_one_10x10x10_float8_grid);
  CU_add_test(suite, "Writing -one 10x10x10 Float8 Grid", write_mone_10x10x10_float8_grid);
  CU_add_test(suite, "Reading -one zero 10x10x10 Float8 Grid", read_mone_10x10x10_float8_grid);
  CU_add_test(suite, "Writing random 10x10x10 Float8 Grid", write_random_10x10x10_float8_grid);
  CU_add_test(suite, "Reading back random 10x10x10 Float8 Grid", read_random_10x10x10_float8_grid);

  GError *e = NULL;
  /*Free the structures*/
  for(int i=0; i<4; i++) {
    if(grids[i] == NULL) {
      fprintf(stderr, "ERROR: grids[%d] is NULL!\n", i);
      continue;
    }
    dotcode_free_type(DOTCODE_GRID, grids[i], 1, &e, TRUE);
    if(e != NULL) {
      fprintf(stderr, "ERROR freeing %dth grid: %s\n", i, e->message);
      g_error_free(e);
    }
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines