Make collector testable and add native test

This commit is contained in:
Johannes 'fish' Ziemke 2014-02-18 13:17:40 +01:00
commit 3a4aa70afb
9 changed files with 280 additions and 21 deletions

View file

@ -12,7 +12,7 @@ type Collector interface {
// Get new metrics and expose them via prometheus registry.
Update() (n int, err error)
// Returns the name of the collector
// Returns the name of the collector.
Name() string
}