We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d942c07 commit 034a6f5Copy full SHA for 034a6f5
ui/ui_test.go
@@ -3,10 +3,9 @@ package ui
3
import (
4
"encoding/json"
5
"encoding/xml"
6
- "github.com/lucasb-eyer/go-colorful"
7
- "io/ioutil"
8
- "os"
9
"testing"
+
+ "github.com/lucasb-eyer/go-colorful"
10
)
11
12
var backgrounds = []struct {
@@ -148,14 +147,6 @@ var thursday = ThemeMap{
148
147
Warning2: "#fa7b0c",
149
}
150
151
-func loadFile(fp string) ([]byte, error) {
152
- file, err := os.Open(fp)
153
- if err != nil {
154
- return nil, err
155
- }
156
- return ioutil.ReadAll(file)
157
-}
158
-
159
func TestNewThemeMap(t *testing.T) {
160
var td ThemeFile
161
bytes, err := loadFile("white-sand.xml")
0 commit comments