Skip to content

Commit

Permalink
test: fix plugin 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 7c26008 commit 46aae76
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@ 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

0 comments on commit 46aae76

Please sign in to comment.