blob: 1cbd9a213f371d17cbcc7bd481c31df978383a7e [file] [log] [blame]
// Copyright IBM Corp. 2019, 2025
// SPDX-License-Identifier: MPL-2.0
package sanitize
import (
"testing"
tfjson "github.com/hashicorp/terraform-json"
)
func TestCopyStructureCopy(t *testing.T) {
in := tfjson.UnknownConstantValue
out, err := copyStructureCopy(in)
if err != nil {
t.Fatal(err)
}
if in != out {
t.Fatal("did not shallow copy")
}
}