![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/masks.h"#include "develop/masks/masks_functions.h"#include "develop/masks/masks_touched.h"#include "develop/masks_group.h"#include "develop/develop.h"#include <stdarg.h>#include <stddef.h>#include <setjmp.h>#include <stdint.h>#include <cmocka.h>
Include dependency graph for test_masks_raster_contract.c:Go to the source code of this file.
Data Structures | |
| struct | _shape_t |
| struct | _write_fixture_t |
Variables | |
| static const _shape_t | _shapes [] |
| static const size_t | _shape_count = sizeof(_shapes) / sizeof(_shapes[0]) |
Definition at line 99 of file test_masks_raster_contract.c.
References _empty_form(), _shape_count, _shapes, dt_masks_get_mask_roi(), DT_MASKS_RASTER_EMPTY, dt_masks_touched_is_empty(), i, state, and void().
Referenced by main().
Definition at line 123 of file test_masks_raster_contract.c.
References dt_masks_get_mask_roi(), DT_MASKS_NONE, DT_MASKS_RASTER_ERROR, dt_masks_form_t::functions, state, dt_masks_form_t::type, and void().
Referenced by main().
Definition at line 533 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_atomic_set_int(), dt_masks_form_unref(), dt_masks_group_get_member(), dt_masks_group_set_member_opacity(), DT_MASKS_OK, f, m, dt_masks_member_t::opacity, state, and void().
Referenced by main().
Definition at line 140 of file test_masks_raster_contract.c.
References _empty_form(), _shape_count, _shapes, dt_masks_get_points_border(), DT_MASKS_RASTER_OK, i, IS_NULL_PTR, state, and void().
Referenced by main().
Definition at line 164 of file test_masks_raster_contract.c.
References _empty_form(), _shape_count, _shapes, dt_masks_get_area(), dt_masks_get_mask(), DT_MASKS_RASTER_OK, dt_masks_form_t::functions, dt_masks_functions_t::get_area, dt_masks_functions_t::get_mask, height, i, IS_NULL_PTR, state, void(), and width.
Referenced by main().
Definition at line 252 of file test_masks_raster_contract.c.
References dt_masks_form_get_info(), DT_MASKS_GROUP, dt_masks_group_copy_members(), DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_UNION, DT_MASKS_STATE_USE, dt_masks_form_group_t::formid, dt_masks_member_t::formid, i, dt_masks_form_info_t::is_group, dt_masks_form_info_t::member_count, dt_masks_form_t::points, state, dt_masks_form_t::type, and void().
Referenced by main().
Definition at line 296 of file test_masks_raster_contract.c.
References DT_MASKS_CIRCLE, dt_masks_group_copy_members(), dt_masks_form_t::points, state, dt_masks_form_t::type, and void().
Referenced by main().
|
static |
A form of the given kind carrying no geometry at all – the degenerate case every shape used to answer differently.
Definition at line 80 of file test_masks_raster_contract.c.
References dt_masks_form_t::functions, _shape_t::functions, dt_masks_form_t::points, dt_masks_form_t::type, and _shape_t::type.
Referenced by _a_shape_with_no_geometry_rasterises_empty(), _an_unbuildable_outline_is_never_reported_as_built(), and _area_and_mask_always_write_their_out_parameters().
Definition at line 564 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_find_holder(), f, state, and void().
Referenced by main().
Definition at line 219 of file test_masks_raster_contract.c.
References DT_MASKS_CIRCLE, DT_MASKS_CLONE, dt_masks_form_get_info(), dt_masks_form_t::formid, dt_masks_form_info_t::formid, dt_masks_form_info_t::is_group, dt_masks_form_info_t::is_retouch, dt_masks_form_info_t::member_count, dt_masks_form_t::name, dt_masks_form_info_t::name, state, dt_masks_form_t::type, dt_masks_form_t::version, dt_masks_form_info_t::version, and void().
Referenced by main().
Definition at line 243 of file test_masks_raster_contract.c.
References dt_masks_form_get_info(), dt_masks_form_info_t::formid, state, and void().
Referenced by main().
Definition at line 89 of file test_masks_raster_contract.c.
References DT_MASKS_RASTER_ERROR, dt_masks_raster_from_status(), DT_MASKS_RASTER_OK, state, and void().
Referenced by main().
Definition at line 464 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_get_member(), DT_MASKS_INVALID, DT_MASKS_NOT_FOUND, DT_MASKS_OK, f, m, state, and void().
Referenced by main().
Definition at line 418 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_operation(), DT_MASKS_OK, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, f, state, and void().
Referenced by main().
Definition at line 487 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_opacity(), DT_MASKS_INVALID, DT_MASKS_NOT_FOUND, DT_MASKS_OK, DT_MASKS_UNCHANGED, f, m, state, and void().
Referenced by main().
Definition at line 518 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_opacity(), DT_MASKS_INVALID, f, state, and void().
Referenced by main().
Definition at line 438 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_operation(), DT_MASKS_INVALID, DT_MASKS_NOT_FOUND, DT_MASKS_STATE_UNION, DT_MASKS_STATE_USE, f, state, and void().
Referenced by main().
Definition at line 382 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_operation(), DT_MASKS_OK, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_UNION, DT_MASKS_STATE_USE, f, m, state, and void().
Referenced by main().
Definition at line 404 of file test_masks_raster_contract.c.
References _write_fixture_cleanup(), _write_fixture_init(), dt_masks_group_set_member_operation(), DT_MASKS_STATE_UNION, DT_MASKS_UNCHANGED, f, state, and void().
Referenced by main().
Definition at line 314 of file test_masks_raster_contract.c.
References DT_MASKS_BRUSH, DT_MASKS_CIRCLE, DT_MASKS_CLONE, DT_MASKS_ELLIPSE, DT_MASKS_GRADIENT, DT_MASKS_GROUP, DT_MASKS_NONE, DT_MASKS_POLYGON, dt_masks_type_name(), state, and void().
Referenced by main().
|
static |
Definition at line 375 of file test_masks_raster_contract.c.
References dt_pthread_rwlock_destroy(), and f.
Referenced by _a_shared_group_is_cloned_before_its_opacity_changes(), _find_holder_names_the_group_that_references_a_shape(), _get_member_reads_a_row_by_identity(), _inverse_toggles_and_leaves_the_operator_alone(), _set_opacity_clamps_and_reports_what_it_stored(), _set_opacity_refuses_a_nan_rather_than_clamping_it(), _set_operation_rejects_what_it_cannot_do(), _set_operation_replaces_the_combine_op(), and _setting_the_state_it_already_has_is_unchanged().
|
static |
Definition at line 351 of file test_masks_raster_contract.c.
References dt_atomic_set_int(), dt_masks_functions_group, DT_MASKS_GROUP, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_UNION, DT_MASKS_STATE_USE, dt_pthread_rwlock_init(), f, and i.
Referenced by _a_shared_group_is_cloned_before_its_opacity_changes(), _find_holder_names_the_group_that_references_a_shape(), _get_member_reads_a_row_by_identity(), _inverse_toggles_and_leaves_the_operator_alone(), _set_opacity_clamps_and_reports_what_it_stored(), _set_opacity_refuses_a_nan_rather_than_clamping_it(), _set_operation_rejects_what_it_cannot_do(), _set_operation_replaces_the_combine_op(), and _setting_the_state_it_already_has_is_unchanged().
| int main | ( | void | ) |
Definition at line 578 of file test_masks_raster_contract.c.
References _a_shape_with_no_geometry_rasterises_empty(), _a_shape_with_no_rasteriser_is_an_error(), _a_shared_group_is_cloned_before_its_opacity_changes(), _an_unbuildable_outline_is_never_reported_as_built(), _area_and_mask_always_write_their_out_parameters(), _copy_members_preserves_order_and_reports_the_total(), _copy_members_refuses_anything_that_is_not_a_group(), _find_holder_names_the_group_that_references_a_shape(), _form_info_describes_a_shape(), _form_info_leaves_out_untouched_on_failure(), _from_status_maps_zero_to_ok_and_everything_else_to_error(), _get_member_reads_a_row_by_identity(), _inverse_toggles_and_leaves_the_operator_alone(), _set_opacity_clamps_and_reports_what_it_stored(), _set_opacity_refuses_a_nan_rather_than_clamping_it(), _set_operation_rejects_what_it_cannot_do(), _set_operation_replaces_the_combine_op(), _setting_the_state_it_already_has_is_unchanged(), and _type_tokens_are_the_persisted_conf_key_spellings().
Definition at line 76 of file test_masks_raster_contract.c.
Referenced by _a_shape_with_no_geometry_rasterises_empty(), _an_unbuildable_outline_is_never_reported_as_built(), and _area_and_mask_always_write_their_out_parameters().
|
static |
Definition at line 70 of file test_masks_raster_contract.c.
Referenced by _a_shape_with_no_geometry_rasterises_empty(), _an_unbuildable_outline_is_never_reported_as_built(), and _area_and_mask_always_write_their_out_parameters().