File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ fn invalid_timestsamp() {
3838#[ test]
3939fn invalid_email_of_committer ( ) {
4040 let actor = gix_actor:: SignatureRef {
41- name : b"Gregor Hartmann<gh " . as_bstr ( ) ,
42- email : b"Gregor Hartmann<[email protected] > " . as_bstr ( ) , 41+ name : b"Gregor Hartmann" . as_bstr ( ) ,
42+ email : b"gh < Gregor Hartmann<[email protected] " . as_bstr ( ) , 4343 time : Time {
44- seconds : 1270814970 ,
44+ seconds : 1282910542 ,
4545 offset : 2 * 60 * 60 ,
4646 sign : Sign :: Plus ,
4747 } ,
@@ -50,12 +50,12 @@ fn invalid_email_of_committer() {
5050 CommitRef :: from_bytes( & fixture_name( "commit" , "invalid-actor.txt" ) )
5151 . expect( "ignore strangely formed actor format" ) ,
5252 CommitRef {
53- tree: b"aee896327aa08c20f9ce80c9060aefe47edc65be " . as_bstr( ) ,
54- parents: [ b"d93091832789fc586916720da62a341a731fbd66 " . as_bstr( ) ] . into( ) ,
53+ tree: b"220738fd4199e95a2b244465168366a73ebdf271 " . as_bstr( ) ,
54+ parents: [ b"209fbe2d632761b30b7b17422914e11b93692833 " . as_bstr( ) ] . into( ) ,
5555 author: actor,
5656 committer: actor,
5757 encoding: None ,
58- message: b"add methods for tablecontrol " . as_bstr( ) ,
58+ message: b"build breakers " . as_bstr( ) ,
5959 extra_headers: vec![ ]
6060 }
6161 ) ;
Original file line number Diff line number Diff line change @@ -124,14 +124,14 @@ fn invalid() {
124124 assert_eq ! (
125125 TagRef :: from_bytes( partial_tag) . unwrap_err( ) . to_string( ) ,
126126 if cfg!( feature = "verbose-object-parsing-errors" ) {
127- "object parsing failed at `tagger Sebasti `"
127+ "object parsing failed at `Sebasti` \n invalid Closing '>' not found \n expected `<name> <<email>> <timestamp> <+|-><HHMM>`, ` tagger <signature> `"
128128 } else {
129129 "object parsing failed"
130130 }
131131 ) ;
132132 assert_eq ! (
133133 TagRefIter :: from_bytes( partial_tag) . take_while( Result :: is_ok) . count( ) ,
134- 4 ,
134+ 3 ,
135135 "we can decode some fields before failing"
136136 ) ;
137137}
You can’t perform that action at this time.
0 commit comments