github.com/quay/claircore@v1.5.28/datastore/postgres/store_test.go (about)

     1  package postgres
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/prometheus/client_golang/prometheus"
     7  	"github.com/prometheus/client_golang/prometheus/testutil"
     8  )
     9  
    10  func TestMetricLint(t *testing.T) {
    11  	lints, err := testutil.GatherAndLint(prometheus.DefaultGatherer)
    12  	if err != nil {
    13  		t.Error(err)
    14  	}
    15  	for _, l := range lints {
    16  		t.Errorf("%s: %s", l.Metric, l.Text)
    17  	}
    18  }