Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stojanov <[email protected]>
  • Loading branch information
losisin committed Oct 30, 2023
1 parent 94f08f5 commit 5ecfb37
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions schema_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package main

import (
"bytes"
"flag"
"fmt"
"log"
"os"
"reflect"
"strings"
Expand Down Expand Up @@ -327,13 +325,13 @@ func TestGenerateJsonSchemaPass(t *testing.T) {
}
}

func captureOutput(f func()) string {
var buf bytes.Buffer
log.SetOutput(&buf)
f()
log.SetOutput(os.Stderr)
return buf.String()
}
// func captureOutput(f func()) string {
// var buf bytes.Buffer
// log.SetOutput(&buf)
// f()
// log.SetOutput(os.Stderr)
// return buf.String()
// }

// func TestGenerateJsonSchemaFail(t *testing.T) {
// var tests = []struct {
Expand Down

0 comments on commit 5ecfb37

Please sign in to comment.