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 missing tests for attributesMap #1337

Merged
merged 7 commits into from
Nov 19, 2020

Conversation

dstdfx
Copy link
Contributor

@dstdfx dstdfx commented Nov 14, 2020

This PR adds missing tests for attributesMap and also fixes #1335

sdk/trace/attributesmap_test.go Outdated Show resolved Hide resolved
@dstdfx dstdfx force-pushed the attributes-map-tests branch from 19d3411 to 45c9edd Compare November 17, 2020 08:08
sdk/trace/attributesmap_test.go Outdated Show resolved Hide resolved
sdk/trace/attributesmap_test.go Outdated Show resolved Hide resolved
Signed-off-by: Daniil Rutskiy <[email protected]>
@codecov
Copy link

codecov bot commented Nov 18, 2020

Codecov Report

Merging #1337 (e92b4d2) into master (fd3c82b) will decrease coverage by 0.3%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1337     +/-   ##
========================================
- Coverage    77.8%   77.5%   -0.4%     
========================================
  Files         125     125             
  Lines        6107    6131     +24     
========================================
  Hits         4753    4753             
- Misses       1103    1127     +24     
  Partials      251     251             
Impacted Files Coverage Δ
sdk/trace/attributesmap.go 100.0% <ø> (ø)
sdk/export/metric/exportkind_string.go 57.1% <0.0%> (-42.9%) ⬇️
label/type_string.go 7.1% <0.0%> (-26.2%) ⬇️
metric/instrumentkind_string.go 10.0% <0.0%> (-23.4%) ⬇️
metric/number/kind_string.go 16.6% <0.0%> (-16.7%) ⬇️

if ok {
t.Fatal("should be dropped")
t.Errorf("key %q should be dropped", testKeyFmt)
Copy link
Contributor

@dashpole dashpole Nov 18, 2020

Choose a reason for hiding this comment

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

I think you want to print out key here, rather than the key format.

@Aneurysm9 Aneurysm9 merged commit 2c2f985 into open-telemetry:master Nov 19, 2020
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
@dstdfx dstdfx deleted the attributes-map-tests branch November 25, 2020 14:48
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* Rename sdk/trace/attributesMap.go -> sdk/trace/attributesmap.go

Signed-off-by: Daniil Rutskiy <[email protected]>

* Add missing tests for attributesMap

Signed-off-by: Daniil Rutskiy <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Daniil Rutskiy <[email protected]>

* Add missing license header

Signed-off-by: Daniil Rutskiy <[email protected]>

* Delete underscores in test names

Signed-off-by: Daniil Rutskiy <[email protected]>

* Tests clean up

Signed-off-by: Daniil Rutskiy <[email protected]>
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

Rename attributesMap.go
6 participants