mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
21 lines
290 B
Go
21 lines
290 B
Go
package repo
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkHello(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
fmt.Sprintf("hello")
|
|
}
|
|
}
|
|
|
|
func TestTimeConsuming(t *testing.T) {
|
|
if testing.Short() {
|
|
t.Skip("skipping test in short mode.")
|
|
} else {
|
|
t.Error("that sukked", "hard", 1)
|
|
}
|
|
}
|