mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Document usage of accuracy tests model
This commit is contained in:
@@ -184,6 +184,21 @@ g_api_ocv_pair_mat_mat opXor = {std::string{"operator^"},
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
// Create new value-parameterized test fixture:
|
||||
// MathOperatorMatScalarTest - fixture name
|
||||
// initMatsRandU - function that is used to initialize input/output data
|
||||
// FIXTURE_API(CompareMats, g_api_ocv_pair_mat_scalar) - test-specific parameters (types)
|
||||
// 2 - number of test-specific parameters
|
||||
// cmpF, op - test-spcific parameters (names)
|
||||
//
|
||||
// We get:
|
||||
// 1. Default parameters: int type, cv::Size sz, int dtype, getCompileArgs() function
|
||||
// - available in test body
|
||||
// 2. Input/output matrices will be initialized by initMatsRandU (in this fixture)
|
||||
// 3. Specific parameters: cmpF, op of correponding types
|
||||
// - created (and initialized) automatically
|
||||
// - available in test body
|
||||
// Note: all parameter _values_ (e.g. type CV_8UC3) are set via INSTANTIATE_TEST_CASE_P macro
|
||||
GAPI_TEST_FIXTURE(MathOperatorMatScalarTest, initMatsRandU,
|
||||
FIXTURE_API(CompareMats, g_api_ocv_pair_mat_scalar), 2, cmpF, op)
|
||||
GAPI_TEST_FIXTURE(MathOperatorMatMatTest, initMatsRandU,
|
||||
|
||||
Reference in New Issue
Block a user