[Agent] [Executor] 优化Functional Executor
This commit is contained in:
16
agent-go/executor/BasicFunction_test.go
Normal file
16
agent-go/executor/BasicFunction_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package executor
|
||||
|
||||
import (
|
||||
"github.com/magiconair/properties/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var emptyFilePath = "/home/wdd/IdeaProjects/ProjectOctopus/agent-go/executor/script"
|
||||
|
||||
func TestBasicFileExistAndNotNull(t *testing.T) {
|
||||
|
||||
resultOK := BasicFileExistAndNotNull(emptyFilePath)
|
||||
|
||||
assert.Equal(t, resultOK, false, "判定为空文件返回false!")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user