(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: { (SQ (Token id: Id.Lit_Chars val: 'git apply should exit non-zero with unrecognized input.' span_id: 6 ) ) } spids: [4] ) ] ) (C {(.)} {(./test-lib.sh)}) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:setup span_id:18))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:22) (Token id:Id.Lit_Chars val:'\ttest_commit 1\n' span_id:23) ) } ) (C {(test_expect_success)} { (SQ (Token id: Id.Lit_Chars val: 'apply --check exits non-zero with unrecognized input' span_id: 30 ) ) } { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:34) (Token id: Id.Lit_Chars val: '\ttest_must_fail git apply --check - <<-\\EOF\n' span_id: 35 ) (Token id:Id.Lit_Chars val:'\tI am not a patch\n' span_id:36) (Token id:Id.Lit_Chars val:'\tI look nothing like a patch\n' span_id:37) (Token id:Id.Lit_Chars val:'\tgit apply must fail\n' span_id:38) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:39) ) } ) (C {(test_expect_success)} {(SQ (Token id:Id.Lit_Chars val:'apply exits non-zero with no-op patch' span_id:46))} { (SQ (Token id:Id.Lit_Chars val:'\n' span_id:50) (Token id:Id.Lit_Chars val:'\tcat >input <<-\\EOF &&\n' span_id:51) (Token id:Id.Lit_Chars val:'\tdiff --get a/1 b/1\n' span_id:52) (Token id:Id.Lit_Chars val:'\tindex 6696ea4..606eddd 100644\n' span_id:53) (Token id:Id.Lit_Chars val:'\t--- a/1\n' span_id:54) (Token id:Id.Lit_Chars val:'\t+++ b/1\n' span_id:55) (Token id:Id.Lit_Chars val:'\t@@ -1,1 +1,1 @@\n' span_id:56) (Token id:Id.Lit_Chars val:'\t 1\n' span_id:57) (Token id:Id.Lit_Chars val:'\tEOF\n' span_id:58) (Token id: Id.Lit_Chars val: '\ttest_must_fail git apply --stat input &&\n' span_id: 59 ) (Token id:Id.Lit_Chars val:'\ttest_must_fail git apply --check input\n' span_id:60) ) } ) (C {(test_done)}) ] )