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

Test - Add tests for code coverage part2 #1384

Merged
merged 8 commits into from
Nov 18, 2021

Conversation

lcheunglci
Copy link
Contributor

@lcheunglci lcheunglci commented Nov 9, 2021

Continuing from PR #1377 , this adds code coverage to the following classes:

  • SqlCommandBuilder
  • SqlMetaData
  • SqlDependency

SqlMetaData is at 92.8% coverage, and there are certain code blocks that's not possible to add coverage, so I can see some areas where it can be cleaned up, but my focus here is for the tests. SqlDependency is at 75% coverage, and it's a bit tricky to invoke certain exceptions.

@lcheunglci lcheunglci changed the title Test - Test code coverage part2 Test - Add tests for code coverage part2 Nov 9, 2021
@cheenamalhotra cheenamalhotra added the ✔️ Tests Identifier for test related changes label Nov 12, 2021
@cheenamalhotra cheenamalhotra added this to In progress in SqlClient v4.0 via automation Nov 12, 2021
@cheenamalhotra cheenamalhotra added this to the 4.0.0 milestone Nov 12, 2021
@johnnypham
Copy link
Contributor

Removed some unnecessary asserts. Everything else LGTM.

SqlClient v4.0 automation moved this from In progress to Reviewer approved Nov 18, 2021
@johnnypham johnnypham merged commit fe79b3d into dotnet:main Nov 18, 2021
SqlClient v4.0 automation moved this from Reviewer approved to Done Nov 18, 2021
@lcheunglci lcheunglci deleted the Test-CodeCoverage-part2 branch November 18, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔️ Tests Identifier for test related changes
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants