diff --git a/plugin_test.go b/plugin_test.go index 75e5904..8eb5ded 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -8,24 +8,9 @@ import ( "encoding/json" "testing" - "C" - "github.com/vanilla-os/vib/api" ) -type DnfModule struct { - Name string `json:"name"` - Type string `json:"type"` - Options DnfOptions `json:"options"` - Source api.Source `json:"source"` -} - -type DnfOptions struct { - Best bool `json:"best"` - Refresh bool `json:"refresh"` - SkipBroken bool `json:"skip_broken"` -} - type testCases struct { module DnfModule expected string @@ -87,12 +72,3 @@ func TestBuildModule(t *testing.T) { } } } - -// Helper functions to convert strings between Go and C -func convertToCString(goString string) *C.char { - return C.CString(goString) -} - -func convertToGoString(cString *C.char) string { - return C.GoString(cString) -}