Skip to content

Add missing tests for attributesMap#1337

Merged
Aneurysm9 merged 7 commits intoopen-telemetry:masterfrom
dstdfx:attributes-map-tests
Nov 19, 2020
Merged

Add missing tests for attributesMap#1337
Aneurysm9 merged 7 commits intoopen-telemetry:masterfrom
dstdfx:attributes-map-tests

Conversation

@dstdfx
Copy link
Copy Markdown
Contributor

@dstdfx dstdfx commented Nov 14, 2020

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

Comment thread sdk/trace/attributesmap_test.go Outdated
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
@dstdfx dstdfx force-pushed the attributes-map-tests branch from 19d3411 to 45c9edd Compare November 17, 2020 08:08
Comment thread sdk/trace/attributesmap_test.go Outdated
Comment thread sdk/trace/attributesmap_test.go Outdated
Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
@codecov
Copy link
Copy Markdown

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%) ⬇️

_, ok := attrMap.attributes[key]
if ok {
t.Fatal("should be dropped")
t.Errorf("key %q should be dropped", testKeyFmt)
Copy link
Copy Markdown
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 <dstdfx@gmail.com>

* Add missing tests for attributesMap

Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>

* Add missing license header

Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>

* Delete underscores in test names

Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>

* Tests clean up

Signed-off-by: Daniil Rutskiy <dstdfx@gmail.com>
@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