mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-27 03:49:59 -04:00
gofmt
This commit is contained in:
1 parent
01852470c7
commit
78b6c61665
2 files changed
+3
-5
No files matched your search
@@ -4,10 +4,8 @@ import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
)
|
||||
|
||||
|
||||
func getDefs(t *testing.T, filename string, data []byte, highlight_lexer string) *Def {
|
||||
var def *Def
|
||||
syn_dir := "./syntax_files"
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
package highlight
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestInputs(t *testing.T) {
|
||||
@@ -15,7 +15,7 @@ func TestInputs(t *testing.T){
|
||||
if err != nil {
|
||||
t.Errorf("Couldn't open '%s', error: %v\n", test_inputs_dir, err)
|
||||
}
|
||||
for _, filename := range(files){
|
||||
for _, filename := range files {
|
||||
ext := strings.Split(filename, ".")
|
||||
data, _ := ioutil.ReadFile(filename)
|
||||
fmt.Println("Testing def detection for " + filename)
|
||||
|
||||
Reference in new issue
Block a user