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

improves numeric literal stringer impl #2663

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Sep 23, 2020

Realized I could simplify our string method for numeric literals. This copies how promql does it and is much cleaner (no more 1.000000 in logs/etc.

@codecov-commenter
Copy link

Codecov Report

Merging #2663 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2663      +/-   ##
==========================================
+ Coverage   61.19%   61.20%   +0.01%     
==========================================
  Files         172      172              
  Lines       13363    13363              
==========================================
+ Hits         8177     8179       +2     
+ Misses       4435     4434       -1     
+ Partials      751      750       -1     
Impacted Files Coverage Δ
pkg/logql/ast.go 89.41% <100.00%> (ø)
pkg/logql/evaluator.go 92.81% <0.00%> (+0.42%) ⬆️

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-d owen-d merged commit 89b8ae4 into grafana:master Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants