(extraHostsJSON string)
| 921 | } |
| 922 | |
| 923 | func parseExtraHosts(extraHostsJSON string) []string { |
| 924 | var extraHosts []string |
| 925 | if err := json.Unmarshal([]byte(extraHostsJSON), &extraHosts); err != nil { |
| 926 | // Handle error or return empty slice |
| 927 | return []string{} |
| 928 | } |
| 929 | return extraHosts |
| 930 | } |
| 931 | |
| 932 | func getMemorySettingsFromNative(sp *specs.Spec) (*MemorySetting, error) { |
| 933 | res := &MemorySetting{} |
no test coverage detected
searching dependent graphs…