17 lines
348 B
Go
17 lines
348 B
Go
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!")
|
||
|
||
}
|