solved a number of problems highlighted by the syntax analyzer
This commit is contained in:
+11
-11
@@ -8,18 +8,18 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func _TestImportPlugin(t *testing.T) {
|
||||
t.Setenv("PLUGINS", "${HOME}/go/src/git.portale-stac.it/go")
|
||||
t.Setenv("EXPR_PLUGIN_PATH","${PLUGINS}/expr-json-plugin:${PLUGINS}/expr-csv-plugin")
|
||||
// func TestImportPlugin(t *testing.T) {
|
||||
// t.Setenv("PLUGINS", "${HOME}/go/src/git.portale-stac.it/go")
|
||||
// t.Setenv("EXPR_PLUGIN_PATH","${PLUGINS}/expr-json-plugin:${PLUGINS}/expr-csv-plugin")
|
||||
|
||||
gotCount, gotErr := importPluginFromSearchPath("json")
|
||||
if gotCount != 1 {
|
||||
t.Errorf("Import count: got=%d, want=1", gotCount)
|
||||
}
|
||||
if gotErr != nil {
|
||||
t.Errorf("importPlugin() failed: %v", gotErr)
|
||||
}
|
||||
}
|
||||
// gotCount, gotErr := importPluginFromSearchPath("json")
|
||||
// if gotCount != 1 {
|
||||
// t.Errorf("Import count: got=%d, want=1", gotCount)
|
||||
// }
|
||||
// if gotErr != nil {
|
||||
// t.Errorf("importPlugin() failed: %v", gotErr)
|
||||
// }
|
||||
// }
|
||||
|
||||
func TestPluginExists(t *testing.T) {
|
||||
name := "json"
|
||||
|
||||
Reference in New Issue
Block a user