"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugin/converter/starlark/starlark_test.go" between
drone-2.15.0.tar.gz and drone-2.16.0.tar.gz

About: Drone is a Continuous Delivery system built on (docker) container technology.

starlark_test.go  (drone-2.15.0):starlark_test.go  (drone-2.16.0)
skipping to change at line 60 skipping to change at line 60
} }
templateData := map[string]interface{}{ templateData := map[string]interface{}{
"stepName": "my_step", "stepName": "my_step",
"image": "my_image", "image": "my_image",
"commands": "my_command", "commands": "my_command",
} }
req.Config.Data = string(before) req.Config.Data = string(before)
parsedFile, err := Parse(req, template, templateData, 0) parsedFile, err := Parse(req, template, templateData, 0, 0)
if err != nil { if err != nil {
t.Error(err) t.Error(err)
return return
} }
if want, got := parsedFile, string(after); want != got { if want, got := parsedFile, string(after); want != got {
t.Errorf("Want %q got %q", want, got) t.Errorf("Want %q got %q", want, got)
} }
} }
skipping to change at line 98 skipping to change at line 98
Repo: &core.Repository{ Repo: &core.Repository{
Slug: "octocat/hello-world", Slug: "octocat/hello-world",
Config: ".drone.star", Config: ".drone.star",
}, },
Config: &core.Config{}, Config: &core.Config{},
} }
req.Repo.Config = "plugin.starlark.star" req.Repo.Config = "plugin.starlark.star"
req.Config.Data = string(before) req.Config.Data = string(before)
parsedFile, err := Parse(req, nil, nil, 0) parsedFile, err := Parse(req, nil, nil, 0, 0)
if err != nil { if err != nil {
t.Error(err) t.Error(err)
return return
} }
if want, got := parsedFile, string(after); want != got { if want, got := parsedFile, string(after); want != got {
t.Errorf("Want %q got %q", want, got) t.Errorf("Want %q got %q", want, got)
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)