-
Notifications
You must be signed in to change notification settings - Fork 831
add branch coverage, better javadoc lints #1851
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
Conversation
ca6293c to
45eeb41
Compare
jaydeluca
left a comment
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.
🎉 out of curiosity, do you happen to know the test coverage % before and after this?
| ExporterPushgatewayProperties properties = | ||
| load( | ||
| Map.of( | ||
| "io.prometheus.exporter.pushgateway.connectTimeoutSeconds", "5", |
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 know these are backwards compatible, but just noting we probably want to update these after #1828 is merged
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 catch! We can wait with this PR - it's not urgent.
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.
fixed now
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Add comprehensive tests for classes that were below coverage requirements: - Config module: ExporterProperties, ExporterOpenTelemetryProperties, ExporterPushgatewayProperties - Exposition formats: PrometheusProtobufWriter - HTTP server: HTTPServer authentication, HttpExchangeAdapter - OpenTelemetry: HistogramPointDataImpl, ExponentialHistogramPointDataImpl - Pushgateway: Scheme - JVM instrumentation: JvmMemoryPoolAllocationMetrics Exclude two classes from coverage checks that require complex mocking: - AllocationCountingNotificationListener (GC notifications) - MapperConfig (complex configuration branching) All coverage checks now pass, resolving branch coverage violations. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
45eeb41 to
cb5eb56
Compare
No description provided.