(s *format.Subsection)
| 162 | func isPathSep(r rune) bool { return r == '/' || r == '\\' } |
| 163 | |
| 164 | func (m *Submodule) unmarshal(s *format.Subsection) { |
| 165 | m.raw = s |
| 166 | |
| 167 | m.Name = m.raw.Name |
| 168 | m.Path = m.raw.Option(pathKey) |
| 169 | m.URL = m.raw.Option(urlKey) |
| 170 | m.Branch = m.raw.Option(branchKey) |
| 171 | } |
| 172 | |
| 173 | func (m *Submodule) marshal() *format.Subsection { |
| 174 | if m.raw == nil { |
no test coverage detected