()
| 166 | } |
| 167 | |
| 168 | func (vs *Vars) DeepCopy() *Vars { |
| 169 | if vs == nil { |
| 170 | return nil |
| 171 | } |
| 172 | defer vs.mutex.RUnlock() |
| 173 | vs.mutex.RLock() |
| 174 | return &Vars{ |
| 175 | om: deepcopy.OrderedMap(vs.om), |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | func (vs *Vars) UnmarshalYAML(node *yaml.Node) error { |
| 180 | if vs == nil || vs.om == nil { |
nothing calls this directly
no test coverage detected