Skip to content

Commit 81a451c

Browse files
committed
Merge branch 'master' into jc/docs-applications-bindings
2 parents 0afca8a + c440248 commit 81a451c

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

.github/workflows/test-linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
cd build/examples
7373
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ../../examples
7474
make
75-
make test
75+
env CTEST_OUTPUT_ON_FAILURE=1 make test
7676
7777
clang-tests:
7878
name: Test Compile clang ${{ matrix.build_type }} ${{ matrix.compile_opt }}
@@ -132,7 +132,7 @@ jobs:
132132
cd build/examples
133133
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_FLAGS="${{ matrix.compile_opt }}" ../../examples
134134
make
135-
make test
135+
env CTEST_OUTPUT_ON_FAILURE=1 make test
136136
137137
valgrind-tests:
138138
name: Test Valgrind

CMakeTests.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(ENABLE_COVERAGE)
4949
add_custom_target(
5050
clean-coverage
5151
# Before running coverage, clear all counters
52-
COMMAND lcov --rc lcov_branch_coverage=1 --directory
52+
COMMAND lcov --rc branch_coverage=1 --directory
5353
'${CMAKE_CURRENT_BINARY_DIR}' --zerocounters
5454
COMMENT "Zeroing counters")
5555
endif()

examples/distance.c

+9-6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include <assert.h>
2525
#include <h3/h3api.h>
26+
#include <inttypes.h>
2627
#include <math.h>
2728
#include <stdio.h>
2829

@@ -49,23 +50,25 @@ double haversineDistance(double th1, double ph1, double th2, double ph2) {
4950

5051
int main(int argc, char *argv[]) {
5152
// 1455 Market St @ resolution 15
52-
H3Index h3HQ1;
53+
H3Index h3HQ1 = 0;
5354
stringToH3("8f2830828052d25", &h3HQ1);
5455
// 555 Market St @ resolution 15
55-
H3Index h3HQ2;
56+
H3Index h3HQ2 = 0;
5657
stringToH3("8f283082a30e623", &h3HQ2);
5758

58-
LatLng geoHQ1, geoHQ2;
59+
LatLng geoHQ1 = {0};
60+
LatLng geoHQ2 = {0};
5961
cellToLatLng(h3HQ1, &geoHQ1);
6062
cellToLatLng(h3HQ2, &geoHQ2);
6163

62-
int64_t distance;
64+
int64_t distance = 0;
6365
assert(gridDistance(h3HQ1, h3HQ2, &distance) == E_SUCCESS);
6466

6567
printf(
6668
"origin: (%lf, %lf)\n"
6769
"destination: (%lf, %lf)\n"
68-
"grid distance: %d\n"
70+
"grid distance: %" PRId64
71+
"\n"
6972
"distance in km: %lfkm\n",
7073
radsToDegs(geoHQ1.lat), radsToDegs(geoHQ1.lng), radsToDegs(geoHQ2.lat),
7174
radsToDegs(geoHQ2.lng), distance,
@@ -75,4 +78,4 @@ int main(int argc, char *argv[]) {
7578
// destination: (37.789991, -122.402121)
7679
// grid distance: 2340
7780
// distance in km: 2.256853km
78-
}
81+
}

scripts/coverage.sh.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ binary_dir=${2:-"Missing binary directory"}
4949
br_exclusion='LCOV_EXCL_BR_LINE|assert\('
5050

5151
cd "${binary_dir}"
52-
lcov --rc lcov_branch_coverage=1 --rc "lcov_excl_br_line=$br_exclusion" --directory . --capture --output-file coverage.info
53-
lcov --rc lcov_branch_coverage=1 --rc "lcov_excl_br_line=$br_exclusion" --extract coverage.info "${src_dir}/src/h3lib/*" --output-file coverage.cleaned.info
52+
lcov --ignore-errors mismatch --rc branch_coverage=1 --rc "lcov_excl_br_line=$br_exclusion" --directory . --capture --output-file coverage.info
53+
lcov --ignore-errors mismatch --rc branch_coverage=1 --rc "lcov_excl_br_line=$br_exclusion" --extract coverage.info "${src_dir}/src/h3lib/*" --output-file coverage.cleaned.info
5454
genhtml --branch-coverage -o coverage coverage.cleaned.info --title 'h3 coverage'

website/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -4473,9 +4473,9 @@ dom-converter@^0.2.0:
44734473
utila "~0.4"
44744474

44754475
dom-iterator@^1.0.0:
4476-
version "1.0.0"
4477-
resolved "https://registry.yarnpkg.com/dom-iterator/-/dom-iterator-1.0.0.tgz#9c09899846ec41c2d257adc4d6015e4759ef05ad"
4478-
integrity sha512-7dsMOQI07EMU98gQM8NSB3GsAiIeBYIPKpnxR3c9xOvdvBjChAcOM0iJ222I3p5xyiZO9e5oggkNaCusuTdYig==
4476+
version "1.0.2"
4477+
resolved "https://registry.yarnpkg.com/dom-iterator/-/dom-iterator-1.0.2.tgz#6b239349ccadbd595055da5e0a7386cce9f0aa7b"
4478+
integrity sha512-BMelEjhy08OpoWF3v/jrPtx7PZCyP1VM9yiB7rJk19UVmt7zTN5rqoC0Jea+EyT0M6v/VokL0LxIlGLUOBJZ2g==
44794479
dependencies:
44804480
component-props "1.1.1"
44814481
component-xor "0.0.4"

0 commit comments

Comments
 (0)