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
chore(mme): add unit test for fillIpv4 #12100
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
f5279dc
to
279b66c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A public wrapper dedicated to test bool fillIpv4(...) would not change the existing interfaces.
... but would add an interface on the other side.
279b66c
to
f9932a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :)
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
f9932a5
to
d3d2a05
Compare
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Signed-off-by: Lars Kreutzer lars.kreutzer@tngtech.com
Summary
SpgwServiceImpl::fillIpv4
is added (see fix(mme): Fix network address in create bearer packet filter #12038)SpgwServiceImpl::fillIpv4
is a private function. The only public function that can lead to calls infillIpv4
isSpgwServiceImpl::CreateBearer
and several conditions need to be fulfilled in order to lead tofillIpv4
calls.SpgwServiceImpl::fillIpv4
function is not called in the existing unit tests - all OAI unit tests succeed even if e.g.raise(SIGSEGV);
is added to theSpgwServiceImpl::fillIpv4
function. The same if true for theSpgwServiceImpl::CreateBearer
function which is the only C/C++ function that can lead to calls of thefillIpv4
function (viafillUpPacketFilterContents
).SpgwServiceImpl::fillIpv4
is made public in order to enable direct testing and to limit extensive overhead from indirect testing viaSpgwServiceImpl::CreateBearer
.Test Plan
make test_oai
Additional Information