diff --git a/realize/tools_test.go b/realize/tools_test.go index 4b7b005..d2ac204 100644 --- a/realize/tools_test.go +++ b/realize/tools_test.go @@ -1 +1,25 @@ package realize + +import "testing" + +func TestTools_Setup(t *testing.T) { + tools := Tools{ + Clean: Tool{ + Status: true, + name: "test", + isTool: false, + Method: "test", + Args: []string{"arg"}, + }, + } + tools.Setup() + if tools.Clean.name == "test"{ + t.Error("Unexpected value") + } + if tools.Clean.Method != "test"{ + t.Error("Unexpected value") + } + if !tools.Clean.isTool{ + t.Error("Unexpected value") + } +} \ No newline at end of file