| 1 | // Copyright (c) 2016, Daniel Martà <[email protected]> |
| 2 | // See LICENSE for licensing information |
| 3 | |
| 4 | package mainscip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/ |
| 5 | |
| 6 | import ( |
| 7 | "flagscip-go gomod github.com/golang/go/src go1.25.0 flag/" |
| 8 | "path/filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/" |
| 9 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 10 | |
| 11 | "github.com/rogpeppe/go-internal/testscriptscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/" |
| 12 | ) |
| 13 | |
| 14 | func TestMainscip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/TestMain().(m *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Mscip-go gomod github.com/golang/go/src go1.25.0 testing/M#) { |
| 15 | testscriptscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/.Mainscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Main().(m, map[string]func(){ |
| 16 | "shfmt": mainscip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/main()., |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | var updatescip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/update. = flagscip-go gomod github.com/golang/go/src go1.25.0 flag/.Boolscip-go gomod github.com/golang/go/src go1.25.0 flag/Bool().("u", false, "update testscript output files") |
| 21 | |
| 22 | func TestScriptscip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/TestScript().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 23 | t.Parallelscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Parallel().() |
| 24 | testscriptscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/.Runscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Run().(t, testscriptscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/.Paramsscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Params#{ |
| 25 | Dirscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Params#Dir.: filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Join().("testdata", "script"), |
| 26 | UpdateScriptsscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Params#UpdateScripts.: *updatescip-go gomod mvdan.cc/sh/v3 . `mvdan.cc/sh/v3/cmd/shfmt`/update., |
| 27 | RequireExplicitExecscip-go gomod github.com/rogpeppe/go-internal v1.14.1 `github.com/rogpeppe/go-internal/testscript`/Params#RequireExplicitExec.: true, |
| 28 | }) |
| 29 | } |