github
14 of 29 new or added lines in 3 files covered. (48.28%)
5 existing lines in 2 files now uncovered.2614 of 3964 relevant lines covered (65.94%)
1.16 hits per line
1 |
package lexer
|
|
2 |
|
|
3 |
import (
|
|
4 |
shlex "github.com/rsteube/carapace-shlex"
|
|
5 |
) |
|
6 |
|
|
|
func Split(s string, pipelines bool) (*shlex.Tokens, error) { |
1✔ |
|
tokens, err := shlex.Split(s) |
1✔ |
9 |
if err != nil { |
1✔ |
UNCOV
10
|
return nil, err |
× |
UNCOV
11
|
} |
× |
|
if pipelines {
|
1✔ |
NEW
|
tokens = tokens.CurrentPipeline() |
× |
UNCOV
14
|
} |
× |
|
return tokens, nil |
1✔ |
16 |
} |