You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: scan_local_cmd_test.go
    path of file: ./repos/cockroach/pkg/cli/clisqlshell
    
    the code of the file until where you have to start completion: // Copyright 2023 The Cockroach Authors.
//
// Use of this software is gov
    
func TestScanLocalCmdArgs(t *testing.T) {
	defer leaktest.AfterTest(t)()

	datadriven.Walk(t, "testdata/local_cmds", func(t *testing.T, path string) {
		datadriven.RunTest(t, path, func(t *testing.T, td *datadriven.TestData) string {
			switch td.Cmd {
			case "run":
				var buf strings.Builder
				args, err := scanLocalCmdArgs(td.Input)
				if err != nil {
					clierror.OutputError(&buf, err, true, false)
					return buf.String()
				}
				fmt.Fprintf(&buf, "%d args:\n", len(args))
				for _, arg := range args {
					fmt.Fprintf(&buf, "%q\n", arg)
				}
				return buf.String()

			default:
				t.Fatalf("unknown command: %s", td.Cmd)
				return "unreachable"
			}
		})
	})
}