mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
16 lines
262 B
Go
16 lines
262 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// TestRawConfig is used to create a RawConfig for testing.
|
|
func TestRawConfig(t *testing.T, c map[string]interface{}) *RawConfig {
|
|
cfg, err := NewRawConfig(c)
|
|
if err != nil {
|
|
t.Fatalf("err: %s", err)
|
|
}
|
|
|
|
return cfg
|
|
}
|