...

Text file src/github.com/rogpeppe/go-internal/cmd/txtar-c/testdata/all.txt

Documentation: github.com/rogpeppe/go-internal/cmd/txtar-c/testdata

     1unquote expect-all
     2unquote expect-no-all
     3
     4# Without the -a flag, it should ignore . files.
     5txtar-c blah
     6! stderr .+
     7cmp stdout expect-no-all
     8
     9# With the -a flag, it should include them.
    10txtar-c -a blah
    11! stderr .+
    12cmp stdout expect-all
    13
    14-- blah/.foo/foo --
    15foo
    16-- blah/.other --
    17other
    18-- blah/go.mod --
    19module example.com/blah
    20
    21-- blah/main.go --
    22package main
    23
    24import "fmt"
    25
    26func main() {
    27  fmt.Println("Hello, world!")
    28}
    29-- expect-all --
    30>-- .foo/foo --
    31>foo
    32>-- .other --
    33>other
    34>-- go.mod --
    35>module example.com/blah
    36>
    37>-- main.go --
    38>package main
    39>
    40>import "fmt"
    41>
    42>func main() {
    43>  fmt.Println("Hello, world!")
    44>}
    45-- expect-no-all --
    46>-- go.mod --
    47>module example.com/blah
    48>
    49>-- main.go --
    50>package main
    51>
    52>import "fmt"
    53>
    54>func main() {
    55>  fmt.Println("Hello, world!")
    56>}

View as plain text