Skip to content

Commit

Permalink
cov
Browse files Browse the repository at this point in the history
  • Loading branch information
John-LittleBearLabs committed Nov 7, 2024
1 parent 8d866dc commit 81c5abf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ function(setup_target_for_coverage_lcov)
${GENHTML_PATH}
${GENHTML_EXTRA_ARGS}
${Coverage_GENHTML_ARGS}
--rc genhtml_hi_limit=90
--rc genhtml_med_limit=75
--rc genhtml_hi_limit=90.9
--rc genhtml_med_limit=74
--prefix "${BASEDIR}"
--ignore-errors unused
-o ${Coverage_NAME}
Expand Down
14 changes: 7 additions & 7 deletions library/src/ipfs_client/ctx/default_gateways.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ auto ctx::LoadGatewaysFromEnvironmentVariable(ipfs::ctx::GatewayConfig& cfg) ->
void ctx::LoadStaticGatewayList(ipfs::ctx::GatewayConfig& cfg) {
auto static_list = {
std::pair<std::string_view, int>{"http://127.0.0.1:8080/", 1040},
{"https://ipfs.io/", 1009},
{"https://dweb.link/", 946},
{"https://trustless-gateway.link/", 942},
{"https://hardbin.com/", 918},
{"https://ipfs.greyh.at/", 862},
{"https://ipfs.joaoleitao.org/", 856},
{"https://dlunar.net/", 697},
{"https://ipfs.io/", 1007},
{"https://dweb.link/", 944},
{"https://trustless-gateway.link/", 941},
{"https://hardbin.com/", 916},
{"https://ipfs.greyh.at/", 861},
{"https://ipfs.joaoleitao.org/", 854},
{"https://dlunar.net/", 695},
{"https://flk-ipfs.io/", 681},
{"https://ipfs.cyou/", 474},
{"https://human.mypinata.cloud/", 415},
Expand Down
2 changes: 2 additions & 0 deletions library/src/ipfs_client/gw/gateway_request_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ TEST_F(GatewayRequestTest, accept_param) {
EXPECT_EQ(t_.accept(), "");
t_.type = RT::Zombie;
EXPECT_EQ(t_.accept(), "");
t_.type = RT::DnsLink;
EXPECT_EQ(t_.accept(), "application/vnd.ipld.raw");
}
TEST_F(GatewayRequestTest, timeouts_ordinal) {
EXPECT_LT(timeout(RT::Identity), timeout(RT::DnsLink));
Expand Down

0 comments on commit 81c5abf

Please sign in to comment.