]> git.lizzy.rs Git - micro.git/blobdiff - tools/testgen.go
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / tools / testgen.go
index 6d53fa57d96861a64b6335a9ed63b8d3d2f3a953..2465ae0a5d5ed27ef37835957a9ab242d45c97ff 100644 (file)
@@ -233,8 +233,6 @@ func main() {
        re := regexp.MustCompile(`[^\w]`)
        usedNames := map[string]bool{}
 
-       var b strings.Builder
-
        for _, test := range tests {
                name := strings.Title(strings.ToLower(test.description))
                name = re.ReplaceAllLiteralString(name, "")
@@ -253,15 +251,5 @@ func main() {
                usedNames[name] = true
 
                fmt.Println(testToGoTest(test, name))
-
-               b.WriteString("Test")
-               b.WriteString(name)
-               b.WriteString("(nil)\n")
        }
-
-       fmt.Println("func BenchmarkBuffer(b *testing.B) {")
-       fmt.Println("for i := 0; i < b.N; i++ {")
-       fmt.Print(b.String())
-       fmt.Println("}")
-       fmt.Println("}")
 }