package httpservermdl import ( "testing" "github.com/stretchr/testify/assert" ) func TestGetServer(t *testing.T) { assert.NotPanics(t, func() { GetServer() }, "The code did panic") } func BenchmarkGethttpclientDefault(b *testing.B) { for i := 0; i < b.N; i++ { GetServer() } }