Skip to content

stats: improve test-coverage for a few stats-related functions.#7038

Merged
jmarantz merged 6 commits intoenvoyproxy:masterfrom
jmarantz:stats-coverage
May 22, 2019
Merged

stats: improve test-coverage for a few stats-related functions.#7038
jmarantz merged 6 commits intoenvoyproxy:masterfrom
jmarantz:stats-coverage

Conversation

@jmarantz
Copy link
Contributor

Description: A few methods had been left uncovered in tests. This addresses some of the issues called out in #7035 . @fredlas and @ahedberg should be able to cover the remainder. Note: when this is merged, #7035 should not be closed -- 2 more PRs will be needed.

This PR has a small refactor to help improve coverage. It renames the const variant of symbolTable() in various class hierarchies, to allow shared base-classes to provide a default implementation of constSymbolTable() based on a derived-class supplied symbolTable().
Risk Level: low
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a

jmarantz added 2 commits May 22, 2019 10:35
…re code.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz requested review from ahedberg and fredlas May 22, 2019 15:21
fredlas
fredlas previously approved these changes May 22, 2019
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this. 2 questions.

/wait

Copy link
Contributor

@ahedberg ahedberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo one naming suggestion.

jmarantz added 2 commits May 22, 2019 13:39
…ot-well-thought-out.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jmarantz
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: tsan (failed build)

🐱

Caused by: a #7038 (comment) was created by @jmarantz.

see: more, trace.

@jmarantz jmarantz merged commit 1736106 into envoyproxy:master May 22, 2019
@jmarantz jmarantz deleted the stats-coverage branch May 22, 2019 21:21
mpuncel added a commit to mpuncel/envoy that referenced this pull request May 23, 2019
* master:
  test: Add coverage for IsolatedStoreImpl::find* (envoyproxy#7043)
  server: add ProcessContext (envoyproxy#7018)
  config: Implement both versions of onConfigUpdate() everywhere (envoyproxy#6879)
  gzip: add test for various compression strategy and level (envoyproxy#7055)
  Fix typo in comment for rds.RouteConfiguration.validate_clusters (envoyproxy#7056)
  mysql_filter: add handling for partial messages (envoyproxy#6885)
  migrate from v2alpha to v2 (envoyproxy#7044)
  tests: fix tsan test flake (envoyproxy#7052)
  upstream: fix HostUtility::healthFlagsToString (envoyproxy#7051)
  tech debt: eliminate absl::make_unique (envoyproxy#7034)
  router: add a route name field in route.Route list (envoyproxy#6776)
  ext_authz: configurable HTTP status code for network errors. (envoyproxy#6669)
  stats: remove const-cast for symbol-table in edcs_filter_test.cc (envoyproxy#7045)
  build: bump libevent to 3b1864b. (envoyproxy#7012)
  stats: improve test-coverage for a few stats-related functions. (envoyproxy#7038)
  docs: fix csrf filter source origin note (envoyproxy#7041)
  Fix common typo: grcp -> grpc (envoyproxy#7040)
  snapshot (envoyproxy#7036)

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants