(azid, tfid, tfaddr, hcl string, deps *Dependencies)
| 20 | } |
| 21 | |
| 22 | func newConfigInfo(azid, tfid, tfaddr, hcl string, deps *Dependencies) ConfigInfo { |
| 23 | cinfo := ConfigInfo{ |
| 24 | ImportItem: ImportItem{ |
| 25 | AzureResourceID: mustParseResourceId(azid), |
| 26 | TFResourceId: tfid, |
| 27 | TFAddr: mustParseTFAddr(tfaddr), |
| 28 | }, |
| 29 | HCL: mustHclWriteParse(hcl), |
| 30 | Dependencies: Dependencies{ |
| 31 | ByIdRef: make(map[string]Dependency), |
| 32 | ByIdRefAmbiguous: make(map[string][]Dependency), |
| 33 | }, |
| 34 | } |
| 35 | if deps != nil { |
| 36 | cinfo.Dependencies = *deps |
| 37 | } |
| 38 | return cinfo |
| 39 | } |
| 40 | |
| 41 | func TestConfigInfos_PopulateReferenceDeps(t *testing.T) { |
| 42 | testCases := []struct { |
no test coverage detected