Files
ProjectOctopus/agent-go/executor/BasicFunction_test.go
2023-10-13 17:22:21 +08:00

17 lines
348 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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")
}