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
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>
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 <dstdfx@gmail.com>
@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 <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