File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 5
5
build :
6
6
docker :
7
7
- image : " debian:stretch"
8
- steps :
8
+ steps :
9
9
- run :
10
10
name : Installing SUDO
11
11
command : ' apt update && apt install -y sudo && rm -rf /var/lib/apt/lists/*'
@@ -21,15 +21,21 @@ jobs:
21
21
- run :
22
22
name : Installing CURL
23
23
command : ' apt install -y curl'
24
+ - run :
25
+ name : Installing GIT
26
+ command : ' apt install -y git'
24
27
- checkout
28
+ - run :
29
+ name : Pull Submodules
30
+ command : git submodule update --init --recursive
25
31
- run :
26
32
name : Build & Test
27
33
command : |
28
34
make clean
29
35
make unit_tests
30
36
cd build
31
- make test
37
+ make test ARGS="-V"
32
38
make coverage
33
- bash <(curl -s https://codecov.io/bash) -f cmake_coverage.output
39
+ bash <(curl -s https://codecov.io/bash) -f coverage.info -X gcov -x gcov-7 || echo "Codecov did not collect coverage reports"
34
40
35
41
Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src")
57
57
58
58
# --- Unit Tests ---
59
59
ENABLE_TESTING ()
60
- # Make the output more verbose
61
- # add_custom_target(test COMMAND ${CMAKE_CTEST_COMMAND} --verbose)
60
+
62
61
if (BUILD_TESTS )
63
62
add_subdirectory ("${CMAKE_CURRENT_SOURCE_DIR} /tests" )
64
63
endif (BUILD_TESTS )
Original file line number Diff line number Diff line change 1
1
2
2
![ License] ( https://img.shields.io/badge/License-MIT-blue.svg )
3
-
3
+ [ ![ codecov ] ( https://codecov.io/gh/filipecosta90/tdigest/branch/master/graph/badge.svg )] ( https://codecov.io/gh/filipecosta90/tdigest )
4
4
# T-Digest
5
5
6
6
Adaptive histogram based on something like streaming k-means crossed with Q-digest.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if(ENABLE_CODECOVERAGE)
13
13
endif ( NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
14
14
15
15
if ( NOT DEFINED CODECOV_OUTPUTFILE )
16
- set ( CODECOV_OUTPUTFILE cmake_coverage.output )
16
+ set ( CODECOV_OUTPUTFILE coverage.info )
17
17
endif ( NOT DEFINED CODECOV_OUTPUTFILE )
18
18
19
19
if ( NOT DEFINED CODECOV_HTMLOUTPUTDIR )
Original file line number Diff line number Diff line change @@ -185,10 +185,13 @@ MU_TEST(test_nans)
185
185
mu_assert (isnan (td_quantile (t , 0 )), "empty value at 0" );
186
186
mu_assert (isnan (td_quantile (t , 0.5 )), "empty value at .5" );
187
187
mu_assert (isnan (td_quantile (t , 1 )), "empty value at 1" );
188
+ mu_assert (isnan (td_centroids_weight_at (t ,1 )), "td_centroids_weight_at on pos > h->merged_nodes" );
189
+ mu_assert (isnan (td_centroids_weight_at (t ,-1 )), "td_centroids_weight_at on pos < 0" );
190
+ mu_assert (isnan (td_centroids_mean_at (t ,1 )), "td_centroids_mean_at on pos > h->merged_nodes" );
191
+ mu_assert (isnan (td_centroids_mean_at (t ,-1 )), "td_centroids_mean_at on pos < 0" );
188
192
td_add (t , 1 , 1 );
189
193
mu_assert (isnan (td_quantile (t , -.1 )), "value at -0.1" );
190
194
mu_assert (isnan (td_quantile (t , 1.1 )), "value at 1.1" );
191
-
192
195
td_free (t );
193
196
}
194
197
You can’t perform that action at this time.
0 commit comments