gograpple/internal/grapple/patch_test.go
2023-10-25 16:34:01 +02:00

30 lines
615 B
Go

package grapple
import (
"testing"
)
func TestGrapple_Patch(t *testing.T) {
type args struct {
repo string
dockerfile string
container string
mounts []Mount
}
tests := []struct {
name string
args args
wantErr bool
}{
{"test", args{"k3d-local-registry:50442", "", "", nil}, false},
}
g := testGrapple(t, "example")
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if err := g.Patch(tt.args.dockerfile, tt.args.container, tt.args.mounts); (err != nil) != tt.wantErr {
t.Errorf("Grapple.Patch() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}