## liboiltest

liboiltest —

##

# Synopsis

    struct      OilTest;
    #define     OIL_TEST_HEADER
    #define     OIL_TEST_FOOTER
    OilTest*    oil_test_new                    (OilFunctionClass *klass);
    void        oil_test_init                   (OilTest *test);
    void        oil_test_free                   (OilTest *test);
    void        oil_test_set_iterations         (OilTest *test,
                                                 int iterations);
    void        oil_test_check_ref              (OilTest *test);
    int         oil_test_check_impl             (OilTest *test,
                                                 OilFunctionImpl *impl);
    void        oil_test_cleanup                (OilTest *test);

## Description

## Details

### struct OilTest

    struct OilTest {

      OilFunctionClass *klass;
      OilFunctionImpl *impl;
      OilPrototype *proto;
      OilParameter params[OIL_ARG_LAST];
      OilProfile prof;

      int iterations;
      int n;
      int m;

      int inited;
      int tested_ref;

      double sum_abs_diff;
      int n_points;
    };

### OIL_TEST_HEADER

    #define OIL_TEST_HEADER 256

### OIL_TEST_FOOTER

    #define OIL_TEST_FOOTER 256

### oil_test_new ()

    OilTest*    oil_test_new                    (OilFunctionClass *klass);

`klass` : |
Returns : |

### oil_test_init ()

    void        oil_test_init                   (OilTest *test);

`test` : |

### oil_test_free ()

    void        oil_test_free                   (OilTest *test);

`test` : |

### oil_test_set_iterations ()

    void        oil_test_set_iterations         (OilTest *test,
                                                 int iterations);

`test` : |
`iterations` : |

### oil_test_check_ref ()

    void        oil_test_check_ref              (OilTest *test);

`test` : |

### oil_test_check_impl ()

    int         oil_test_check_impl             (OilTest *test,
                                                 OilFunctionImpl *impl);

`test` : |
`impl` : |
Returns : |

### oil_test_cleanup ()

    void        oil_test_cleanup                (OilTest *test);

`test` : |