mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
d2e999ba1f
* remove unused code I've removed the provider-specific code under registry, and unused nil backend, and replaced a call to helper from backend/oss (the other callers of that func are provisioners scheduled to be deprecated). I also removed the Dockerfile, as our build process uses a different file. Finally I removed the examples directory, which had outdated examples and links. There are better, actively maintained examples available. * command: remove various unused bits * test wasn't running * backend: remove unused err
28 lines
471 B
Go
28 lines
471 B
Go
package terraform
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestPrefixUIInput_impl(t *testing.T) {
|
|
var _ UIInput = new(PrefixUIInput)
|
|
}
|
|
|
|
func TestPrefixUIInput(t *testing.T) {
|
|
input := new(MockUIInput)
|
|
prefix := &PrefixUIInput{
|
|
IdPrefix: "foo",
|
|
UIInput: input,
|
|
}
|
|
|
|
_, err := prefix.Input(context.Background(), &InputOpts{Id: "bar"})
|
|
if err != nil {
|
|
t.Fatalf("err: %s", err)
|
|
}
|
|
|
|
if input.InputOpts.Id != "foo.bar" {
|
|
t.Fatalf("bad: %#v", input.InputOpts)
|
|
}
|
|
}
|