(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool)
| 224 | } |
| 225 | |
| 226 | func (p *parser) parseStringOrStringSequence(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool) []*String { |
| 227 | switch n.Kind { |
| 228 | case yaml.ScalarNode: |
| 229 | if allowEmpty && n.Tag == "!!null" { |
| 230 | return []*String{} // In the case of 'foo:' |
| 231 | } |
| 232 | return []*String{p.parseString(n, allowElemEmpty)} |
| 233 | default: |
| 234 | return p.parseStringSequence(sec, n, allowEmpty, allowElemEmpty) |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | func (p *parser) parseBool(n *yaml.Node) *Bool { |
| 239 | if n.Kind != yaml.ScalarNode || (n.Tag != "!!bool" && n.Tag != "!!str") { |
no test coverage detected