Skip to content

Commit 40452c9

Browse files
constanca-matoulme
andauthored
[translator/azurelogs] Increase unit test coverage (#39176)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Every test unit that was using a log file, now compares the full log structure with the expected one instead of just a few fields. The previous test units all passed. I have removed them as they are now redundant. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #39136. --------- Co-authored-by: Antoine Toulme <[email protected]>
1 parent 5f88714 commit 40452c9

17 files changed

+1282
-482
lines changed

pkg/translator/azurelogs/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go 1.23.0
44

55
require (
66
github.com/json-iterator/go v1.1.12
7+
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.123.0
78
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest v0.123.0
89
github.com/relvacode/iso8601 v1.6.0
910
github.com/stretchr/testify v1.10.0

0 commit comments

Comments
 (0)