• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

peterstace / simplefeatures
91%
master: 91%

Build:
Build:
LAST BUILD BRANCH: reflect_deep_equals_support
DEFAULT BRANCH: master
Repo Added 13 Jul 2021 07:40PM UTC
Files 66
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH remove_error_and_ctor_options_from_direct_ctors
branch: remove_error_and_ctor_options_from_direct_ctors
CHANGE BRANCH
x
Reset
  • remove_error_and_ctor_options_from_direct_ctors
  • 411-use-unsafeslice-for-wkb-handling
  • 661-foreign-member-handled-in-geojson-marshaling-is-overly-cautiouscomplicated
  • add_clockwise_checks
  • add_coveralls
  • add_m_and_z_tolerance
  • add_string_method_to_envelope
  • add_tests_for_null_geometry
  • add_tests_for_xy_unit
  • add_workflow_dispatch_to_gh_actions
  • address_go_report_card_issues
  • alter_internal_structure_of_multipoints
  • area_transform_func_invoked_multiple_times
  • as_geometry_type
  • avoid_atan2_in_dcel
  • basic_projections_carto_package
  • better_lerp
  • better_nan_handling_in_fastmin_and_fastmax
  • bitset_bugfixes
  • bounding_diagonal
  • bugfix_transform_empty_collection
  • build_tag_for_no_pkg_config
  • carto_projection_demo
  • clarify_validate_functionality_in_doc_comment
  • cleanup_error_handling_in_dcel_renoding
  • cleanup_error_handling_in_parsers
  • collapse_point_ctors
  • collapse_point_ctors_for_xy_only
  • decimate
  • detect_trailing_wkb_bytes
  • do_not_panic_when_no_rings_to_extract
  • dockerise_benchmarks
  • dont_label_faces_when_inputs_are_lines
  • dump
  • dump_points
  • dump_rings
  • eliminate-copy-in-force-cw-ccw
  • empty_env
  • enable_errcheck_linter
  • enable_errorlint_linter
  • enable_revive_linter
  • enable_stylecheck_linter
  • enable_testpackage_linter
  • enable_unparam_linter
  • envelope_ctor_no_validation
  • envelope_on_sequence
  • envelope_transform_xy
  • exact_algorithms
  • export_envelope_to_box_helper
  • fix_aarch64_incorrect_intersection_results
  • fix_bug_in_envelope_transform_xy
  • fix_bug_in_exact_equals
  • fix_ci_for_aarch64
  • fix_golangci-lint
  • fix_lint_error
  • fix_more_go_report_card_issues
  • fix_pct_w_verb_in_Errorf
  • fix_run_benchmarks_script
  • fix_some_misleading_doc_comments
  • fix_spelling_error_in_marshaler_comment
  • gc_dcel_bugfix_WIP
  • geometry-collection-dcel
  • geos_3.11
  • geos_coverage_union
  • geos_rtree
  • geos_unary_union
  • geoscpp
  • hack_line_x_line_intersection_order_to_make_it_symmetric
  • improve_coverage
  • improve_orientation_documentation
  • is_valid
  • issue-416-wrap-errors
  • json_unmarshal_on_concrete_geometries
  • linear_interpolation_methods
  • lint_fixes
  • lint_overhaul
  • make_ignore_order_a_func
  • master
  • min_diamater
  • min_max_xys
  • minor_cleanup_for_radial_sorting
  • move_geos_wrappers_from_cmpgeos_to_rawgeos
  • multiple_geos_versions_in_ci
  • nan_checks
  • no_rings_error
  • no_validation_in_direct_ctors
  • no_validation_in_geos_wrapper
  • normalise
  • omitinvalid_bugfix
  • only_trigger_github_actions_once_per_commit
  • ordered_DCEL_output
  • pkg-config_fix
  • proj_wrapper
  • rearrange_and_rename_dcel_code
  • refactor_dcel_labels_WIP
  • reflect_deep_equals_support
  • refs/heads/geos_rtree
  • refs/tags/v0.30.0
  • refs/tags/v0.31.0
  • refs/tags/v0.32.0
  • refs/tags/v0.33.0
  • refs/tags/v0.33.1
  • refs/tags/v0.34.0
  • refs/tags/v0.35.0
  • refs/tags/v0.36.0
  • refs/tags/v0.37.0
  • refs/tags/v0.38.0
  • refs/tags/v0.39.0
  • refs/tags/v0.40.0
  • refs/tags/v0.40.1
  • refs/tags/v0.41.0
  • refs/tags/v0.42.0
  • refs/tags/v0.42.1
  • refs/tags/v0.43.0
  • refs/tags/v0.44.0
  • refs/tags/v0.45.0
  • refs/tags/v0.45.1
  • refs/tags/v0.46.0
  • refs/tags/v0.47.0
  • refs/tags/v0.47.1
  • refs/tags/v0.47.2
  • remove_is_leaf_flag
  • remove_omit_invalid
  • remove_repeated_points
  • remove_rtree_insert_and_delete_methods
  • remove_unneeded_benchmarks
  • remove_unused_code
  • remove_validation_from_transform_xy
  • remove_xor_nan_envelope_hack
  • remove_xor_nan_in_env
  • rename_unchecked_point_ctors
  • reproduce_bug_573
  • reproduce_geos_bug
  • reuse_dcel_half_edges_to_fix_geometry_collection_bugs
  • reuse_dcel_half_edges_to_fix_geometry_collection_bugs_WIP
  • rewrite_release_notes_for_nan_inf_validation
  • rot_mbr
  • rtree_cleanup
  • scratch
  • scratch_alternate_line_line_intersection
  • separate_point_x_line_and_line_x_line_renoding
  • separate_validating_and_non_validating_ctor_funcs
  • shared_geos_wrapper
  • simpler_node_set_implementation
  • simpler_rtree_bulk_load
  • simplify_dcel_label_management
  • simplify_geometry_type_method
  • simplify_refactor
  • snap_to_grid
  • support_feature_collection_foreign_members
  • support_xzym_for_geojson_unmarshal
  • sync_pool_for_rtree
  • twkb-decode
  • unary_union_WIP
  • unary_union_and_union_many
  • update_golangci-lint_to_v1.55.2
  • upgrade_checkout_gh_action
  • upgrade_to_golangci-lint_1.56.0
  • upgrade_to_golangci-lint_v1.56.1
  • use_Less_XY_comparison_func
  • use_alpine_images_for_geos
  • use_existing_rawgeos_wrappers_in_cmpgeos
  • use_makefile_instead_of_bash_script_for_ci
  • use_novalidate_instead_of_constructor_options
  • use_sequence_envelope_instead_of_extend
  • use_sequence_instead_of_intermediate_xys_for_dcel_edges
  • use_tb_interface_for_test_helpers
  • utm_projection
  • v0.47_fixes
  • validate_method
  • validate_only_for_parsers
  • wrap_make_valid

20 Sep 2023 06:44PM UTC coverage: 91.251% (+0.3%) from 90.956%
6252798886

Pull #530

github

peterstace
Remove error and ctor options from direct ctors

Modify direct constructors (`NewPoint` etc.) to no longer perform
validation at all. The direct constructors are for more advanced use
cases where geometries are being constructed from other geometries or
raw sequences of floats. Things like custom geometric algorithms come to
mind. Because these are for advanced use cases, making users validate
manually is reasonable.

Modifying direct constructors removes error handling mismatch, with
users no longer having to handle errors that can never occur (when
validation is disabled). It also eliminates the situation where
constructor options would sometimes be ignored, and simplifies the rules
around what validation occurs during direct construction (i.e. now none
is performed).
Pull Request #530: Remove error and ctor options from direct ctors

139 of 139 new or added lines in 19 files covered. (100.0%)

7676 of 8412 relevant lines covered (91.25%)

32238.26 hits per line

Relevant lines Covered
Build:
Build:
8412 RELEVANT LINES 7676 COVERED LINES
32238.26 HITS PER LINE
Source Files on remove_error_and_ctor_options_from_direct_ctors
  • Tree
  • List 61
  • Changed 30
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
6252798886 remove_error_and_ctor_options_from_direct_ctors Remove error and ctor options from direct ctors Modify direct constructors (`NewPoint` etc.) to no longer perform validation at all. The direct constructors are for more advanced use cases where geometries are being constructed from other geometr... Pull #530 20 Sep 2023 07:01PM UTC peterstace github
91.25
6247576391 remove_error_and_ctor_options_from_direct_ctors Add TODO comments push 20 Sep 2023 11:10AM UTC Peter Stace github
91.25
6234261588 remove_error_and_ctor_options_from_direct_ctors Update ctor usage everywhere else push 19 Sep 2023 10:32AM UTC peterstace github
91.25
See All Builds (878)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc