-
Notifications
You must be signed in to change notification settings - Fork 694
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: added tests for the log analyzer #1010
Conversation
94254ed
to
c1bfbab
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.
good work! i commented two questions
c1bfbab
to
8914eb0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1010 +/- ##
==========================================
+ Coverage 69.12% 69.63% +0.51%
==========================================
Files 30 30
Lines 2552 2549 -3
==========================================
+ Hits 1764 1775 +11
+ Misses 746 727 -19
- Partials 42 47 +5 ☔ View full report in Codecov by Sentry. |
67c2ca7
to
f21c669
Compare
45dc027
to
f64a7fa
Compare
dfa0443
to
025b40b
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.
I am okay with this as a first pass
* Added new tests for `LogAnalyzer` defined in the `pkg/analyzer` package. Increased the code coverage of the `log.go` file to >90% Partially addresses: k8sgpt-ai#889 Signed-off-by: VaibhavMalik4187 <[email protected]>
025b40b
to
b2da8f6
Compare
Thanks, I've rebased this branch to include the latest changes. |
📑 Description
Added new tests for
LogAnalyzer
defined in thepkg/analyzer
package. Increased the code coverage of thelog.go
file to >90%Added
fake logs
string to theerrorPattern
to enable the discovery of error logs during the tests.TODO: Find a method to edit logs of the containers defined in the Kubernetes client config.
Partially addresses: #889
✅ Checks