Skip to content

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake committed Oct 5, 2024
1 parent 9356053 commit 7eeece9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/extensions/dynamic_modules/http/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ envoy_cc_test(
"//source/extensions/filters/http/dynamic_modules:filter_lib",
"//test/extensions/dynamic_modules:util",
"//test/mocks/http:http_mocks",
"//test/mocks/server:server_mocks",
],
)
7 changes: 6 additions & 1 deletion test/extensions/dynamic_modules/http/filter_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "source/extensions/filters/http/dynamic_modules/filter.h"

#include "test/extensions/dynamic_modules/util.h"
#include "test/mocks/http/mocks.h"
#include "test/test_common/utility.h"

namespace Envoy {
Expand All @@ -27,7 +28,11 @@ TEST_P(DynamicModuleTestLanguages, Nop) {
std::make_shared<Envoy::Extensions::DynamicModules::HttpFilters::DynamicModuleHttpFilter>(
filter_config_ptr);

// The followings are for mostly coverage at the moment.
// The followings are mostly for coverage at the moment.
NiceMock<Http::MockStreamDecoderFilterCallbacks> decoder_callbacks;
filter->setDecoderFilterCallbacks(decoder_callbacks);
NiceMock<Http::MockStreamEncoderFilterCallbacks> encoder_callbacks;
filter->setEncoderFilterCallbacks(encoder_callbacks);
filter->onStreamComplete();
filter->onDestroy();
TestRequestHeaderMapImpl headers{{}};
Expand Down

0 comments on commit 7eeece9

Please sign in to comment.