prometheus/pkg/textparse
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110)
* Refactor test assertions

This pull request gets rid of assert.True where possible to use
fine-grained assertions.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-10-27 11:06:53 +01:00
..
interface.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
openmetricslex.l
openmetricslex.l.go
openmetricsparse.go
openmetricsparse_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
promlex.l
promlex.l.go
promparse.go
promparse_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
promtestdata.nometa.txt
promtestdata.txt
README.md

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex