fix: unittest

This commit is contained in:
debugtalk
2022-03-18 21:48:42 +08:00
parent c252549568
commit df74aafd7b
4 changed files with 75 additions and 10 deletions

View File

@@ -44,9 +44,18 @@ func TestLocateFile(t *testing.T) {
}
}
func TestLocatePlugin(t *testing.T) {
// specify target plugin path
_, err := locatePlugin("examples/plugin/debugtalk.py")
func TestLocatePythonPlugin(t *testing.T) {
_, err := locatePlugin("examples/debugtalk.py")
if !assert.Nil(t, err) {
t.Fail()
}
}
func TestLocateGoPlugin(t *testing.T) {
buildHashicorpPlugin()
defer removeHashicorpPlugin()
_, err := locatePlugin("examples/debugtalk.bin")
if !assert.Nil(t, err) {
t.Fail()
}