mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-08-05 13:43:40 -07:00
fix tests
This commit is contained in:
+2
-2
@@ -16,10 +16,10 @@ func loadFile(t *testing.T, filename string) []byte {
|
||||
|
||||
var files = []string{"testdata/config1", "testdata/config2"}
|
||||
|
||||
func TestLoadReader(t *testing.T) {
|
||||
func TestDecode(t *testing.T) {
|
||||
for _, filename := range files {
|
||||
data := loadFile(t, filename)
|
||||
cfg, err := LoadReader(bytes.NewReader(data))
|
||||
cfg, err := Decode(bytes.NewReader(data))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user