Skip to content
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

Enhance mocking framework, return back CPP03 support, extend ntcr::StreamSocket test coverage #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smtrfnv
Copy link
Contributor

@smtrfnv smtrfnv commented May 17, 2024

This PR:

  • enhances and simplifies mocking framework
  • ensures that ic can be compiled using cpp03 on Solaris and AIX
  • extends coverage of ntcr::StreamSocket
  • adds implementation of ntsi::Stream/DatagramSocket::send(ntsa::SendContext* context, const void* data, bsl::size_t size, const ntsa::SendOptions& options) to multiple children classes. @mattrm456 please pay attention to that part

next round of simplifications

introduce pass traits

Fix Windows compilation for ntsu::SocketOptionUtil, add functionality to mock methods with 4 arguments, mock new send for ntcd::StreamSocket

get rid of some MACROs

count all arguments and matchers from 0 instead of 1

Unify NTF_EXPECT macro

replace some macros with normal functions

AIX compilation fixed

Fix compilation on SunOS

Add TC28 to ntcr_streamsocket.t

Add TC29 and TC30 to ntcr_streamsocket.t

Simplify mocking framework

Add one more TC

Add more TCs

Add more TCs
@smtrfnv smtrfnv force-pushed the mock_framework_enhancement branch from 5c8d6c6 to 7d65778 Compare May 17, 2024 16:45
@smtrfnv
Copy link
Contributor Author

smtrfnv commented May 17, 2024

@mattrm456 I think there was an issue with CI check and I have no permissions to restart it. Locally all tests pass.

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.

None yet

1 participant