Skip to content

Commit 73bbe7b

Browse files
Add context_test.go for unit test
1 parent 2b9600c commit 73bbe7b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

context_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package dockergen
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestGetCurrentContainerID(t *testing.T) {
8+
currentContainerID := GetCurrentContainerID()
9+
10+
if len(currentContainerID) != 64 {
11+
t.Fail()
12+
}
13+
}

0 commit comments

Comments
 (0)