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

Add unit tests for GithubClient #176

Merged
merged 5 commits into from
Dec 15, 2021
Merged

Conversation

ArinGhazarian
Copy link
Collaborator

Closes #173

This PR adds unit tests for the GithubClient class.

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked

@github-actions
Copy link

github-actions bot commented Dec 14, 2021

Test Results

  1 files  ±  0    1 suites  ±0   0s ⏱️ ±0s
89 tests +28  89 ✔️ +28  0 💤 ±0  0 ±0 

Results for commit 8135e7c. ± Comparison against base commit 9bc1b26.

♻️ This comment has been updated with latest results.

@dylan-smith
Copy link
Collaborator

you can't use the new namespace with no-braces syntax yet, codeql doesn't support it.

@ArinGhazarian
Copy link
Collaborator Author

you can't use the new namespace with no-braces syntax yet, codeql doesn't support it.

Yeah totally missed that 😞

@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
octoshift 62% 54% 372
Summary 62% (1091 / 1753) 54% (144 / 268) 372

@dylan-smith
Copy link
Collaborator

you can't use the new namespace with no-braces syntax yet, codeql doesn't support it.

Yeah totally missed that 😞

really sucks, as it stands today we have to choose between being able to use CodeQL or using C# 10 features. My thought is we can live without C# 10 for a while...but how long do we wait. CodeQL team seems to be targetting CY2022Q1 for it.

@ArinGhazarian
Copy link
Collaborator Author

you can't use the new namespace with no-braces syntax yet, codeql doesn't support it.

Yeah totally missed that 😞

really sucks, as it stands today we have to choose between being able to use CodeQL or using C# 10 features. My thought is we can live without C# 10 for a while...but how long do we wait. CodeQL team seems to be targetting CY2022Q1 for it.

Well, also in that regard, apparently implicit typing of Func and Action delegates is a C# 10 feature and not supported by CodeQL yet :(

@ArinGhazarian ArinGhazarian self-assigned this Dec 14, 2021
Copy link
Collaborator

@dylan-smith dylan-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this all looks great!

@ArinGhazarian ArinGhazarian merged commit 30d4393 into main Dec 15, 2021
@ArinGhazarian ArinGhazarian deleted the github-client-unit-tests branch December 15, 2021 17:41
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.

Unit Test GithubClient
2 participants