-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing coverage in fault filter #342
Comments
Correct me if I am wrong. I am not testing that function directly. However,
see the following line
https://github.com/lyft/envoy/blob/master/test/common/http/filter/fault_filter_test.cc#L85
that checks if timers are disabled after use.
And here is an example test case:
https://github.com/lyft/envoy/blob/master/test/common/http/filter/fault_filter_test.cc#L274
WDYT?
Also, is there a tool that provides line by line code coverage stats?
On Tue, Jan 10, 2017 at 10:44 PM Matt Klein ***@***.***> wrote:
@rshriram <https://github.com/rshriram> I noticed the following line is
missing coverage in the fault filter. Do you mind adding a test for that
case? It's pretty important to make sure the timer gets correctly disabled,
etc.
https://github.com/lyft/envoy/blob/master/source/common/http/filter/fault_filter.cc#L121
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#342>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH0qd7XJfn_U5x8XxxeU4tnu8fA0MBacks5rRFAugaJpZM4LgKii>
.
--
~shriram
|
You need to have a test where you invoke the stream reset callback like this: This will insure that things are cleaned up properly in the reset case. You can do a full coverage build like so: After that runs there will be a lot of HTML files including coverage.html which show you exactly what is covered. |
Currently only RSA_2048, RSA_3072, RSA_4096, ECDSA_P256 is supported. If the pkey type is not specified in config file, original server pkey type will be copied. The default value is RSA_2048. Signed-off-by: Luyao Zhong <[email protected]>
Description: this PR completes memory management for headers being passed from the platform to C to Cpp and back. Risk Level: med - changes memory management of headers. Testing: Added unit tests to make sure that headers are being freed when appropriate. Signed-off-by: Jose Nino <[email protected]> Signed-off-by: JP Simard <[email protected]>
Description: remove unnecessary pragma left as a merge comment in #342 Risk Level: low Testing: builds in CI Signed-off-by: Jose Nino <[email protected]> Signed-off-by: JP Simard <[email protected]>
Description: this PR completes memory management for headers being passed from the platform to C to Cpp and back. Risk Level: med - changes memory management of headers. Testing: Added unit tests to make sure that headers are being freed when appropriate. Signed-off-by: Jose Nino <[email protected]> Signed-off-by: JP Simard <[email protected]>
Description: remove unnecessary pragma left as a merge comment in #342 Risk Level: low Testing: builds in CI Signed-off-by: Jose Nino <[email protected]> Signed-off-by: JP Simard <[email protected]>
@rshriram I noticed the following line is missing coverage in the fault filter. Do you mind adding a test for that case? It's pretty important to make sure the timer gets correctly disabled, etc.
https://github.com/lyft/envoy/blob/master/source/common/http/filter/fault_filter.cc#L121
The text was updated successfully, but these errors were encountered: