]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/terraform/ui_input_mock.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / ui_input_mock.go
index e3a07efa33656d74b578ef13ff8ad2410dd1f7c3..e2d9c3848193c1be2169b510a57a259bdf1b2e5f 100644 (file)
@@ -1,5 +1,7 @@
 package terraform
 
+import "context"
+
 // MockUIInput is an implementation of UIInput that can be used for tests.
 type MockUIInput struct {
        InputCalled       bool
@@ -10,7 +12,7 @@ type MockUIInput struct {
        InputFn           func(*InputOpts) (string, error)
 }
 
-func (i *MockUIInput) Input(opts *InputOpts) (string, error) {
+func (i *MockUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) {
        i.InputCalled = true
        i.InputOpts = opts
        if i.InputFn != nil {