Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Jun 30, 2024
1 parent 46aae76 commit bbeff56
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}

0 comments on commit bbeff56

Please sign in to comment.