1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:34:40 -07:00
go/internal/lsp/telemetry
Emmanuel T Odeke e1fc249b66 internal/lsp/telemetry/ocagent: add convertAnnotation tests
* Adds tests for 'convertAnnotation'.
* Ensures that converting an empty string "" to
a truncatable string returns nil, to save bandwidth. However,
in the future, we should perhaps allow empty strings to
be serialized if say "emptyAllowed" is set.
* Caught the case where convertAttribute hadn't type
switched on "int"
* Provides 40.5% test coverage for ocagent.go

More tests for the other functions shall follow in later CLs.

Updates CL 186679

Change-Id: Ie9b46b0b320339ed79cd136fff536ccfcfbeb9e7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/188877
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-08-05 19:50:47 +00:00
..
log internal/lsp: add a new telemetry based logging system 2019-07-18 19:02:45 +00:00
metric internal/lsp: add the metrics package 2019-07-11 17:12:21 +00:00
ocagent internal/lsp/telemetry/ocagent: add convertAnnotation tests 2019-08-05 19:50:47 +00:00
stats internal/lsp: add new stats library 2019-07-09 19:46:23 +00:00
tag internal/lsp: add a new telemetry based logging system 2019-07-18 19:02:45 +00:00
trace internal/lsp: new tracing system 2019-07-18 23:00:54 +00:00
worker internal/lsp: add an ocagent exporter for the telemetry system 2019-07-19 00:56:02 +00:00
telemetry.go internal/lsp: add new stats library 2019-07-09 19:46:23 +00:00