mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
added test for apply dataset
This commit is contained in:
17
ps_test.go
17
ps_test.go
@@ -1,4 +1,5 @@
|
|||||||
// TODO(sbrow): Update package tests.
|
// TODO(sbrow): Update package tests.
|
||||||
|
|
||||||
package ps
|
package ps
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -8,6 +9,22 @@ import (
|
|||||||
"github.com/sbrow/ps/v2/runner"
|
"github.com/sbrow/ps/v2/runner"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestApplyDataset(t *testing.T) {
|
||||||
|
tests := []struct {
|
||||||
|
name string
|
||||||
|
wantErr bool
|
||||||
|
}{
|
||||||
|
{"Ignite_1", false},
|
||||||
|
}
|
||||||
|
for _, tt := range tests {
|
||||||
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
if err := ApplyDataset(tt.name); (err != nil) != tt.wantErr {
|
||||||
|
t.Errorf("ApplyDataset() error = %v, wantErr %v", err, tt.wantErr)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
var testDoc string
|
var testDoc string
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user