generated from rmcguire/go-server-with-otel
implement econet exporter
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package econetmetrics
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestB2I(t *testing.T) {
|
||||
if got := b2i(true); got != 1 {
|
||||
t.Errorf("b2i(true) = %d, want 1", got)
|
||||
}
|
||||
if got := b2i(false); got != 0 {
|
||||
t.Errorf("b2i(false) = %d, want 0", got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user