Skip to content

Commit e1434cc

Browse files
committed
test: add common check test
1 parent 08d4a02 commit e1434cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vmdetect/common_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package vmdetect
2+
3+
import "testing"
4+
5+
func TestCommonCheck(t *testing.T) {
6+
inVM, msg := CommonChecks()
7+
if inVM && msg != "nothing" {
8+
t.Errorf("inside vm but got %s, expect else", msg)
9+
}
10+
}

0 commit comments

Comments
 (0)