@@ -305,18 +305,6 @@ mod input_shape {
305305 fn errors_for_unknown_protocol ( ) {
306306 Input :: parse ( "unknown://test" ) . unwrap ( ) ;
307307 }
308-
309- #[ test]
310- #[ should_panic( expected = "parent relative paths are not supported" ) ]
311- fn errors_for_parent_relative_from_project ( ) {
312- Input :: parse ( "../test" ) . unwrap ( ) ;
313- }
314-
315- // #[test]
316- // #[should_panic(expected = "parent relative paths are not supported")]
317- // fn errors_for_parent_relative_from_workspace() {
318- // Input::parse("/../test").unwrap();
319- // }
320308 }
321309
322310 mod parse_object {
@@ -354,7 +342,7 @@ mod input_shape {
354342 Input :: WorkspaceFile ( {
355343 let mut inner = create_file_input( "/root/file.txt" ) ;
356344 inner. optional = true ;
357- inner. matches = Some ( "a|b|c" . into( ) ) ;
345+ inner. content = Some ( "a|b|c" . into( ) ) ;
358346 inner
359347 } )
360348 ) ;
@@ -415,15 +403,15 @@ mod input_shape {
415403 fn supports_matches_field ( ) {
416404 let input = create_file_input ( "file.txt?matches=abc" ) ;
417405
418- assert_eq ! ( input. matches . unwrap( ) , "abc" ) ;
406+ assert_eq ! ( input. content . unwrap( ) , "abc" ) ;
419407
420408 let input = create_file_input ( "file.txt?match=abc" ) ;
421409
422- assert_eq ! ( input. matches . unwrap( ) , "abc" ) ;
410+ assert_eq ! ( input. content . unwrap( ) , "abc" ) ;
423411
424412 let input = create_file_input ( "file.txt?matches" ) ;
425413
426- assert ! ( input. matches . is_none( ) ) ;
414+ assert ! ( input. content . is_none( ) ) ;
427415 }
428416
429417 #[ test]
@@ -541,21 +529,21 @@ mod input_shape {
541529 let input = create_glob_input ( "!project/file.*" ) ;
542530
543531 assert_eq ! ( input. glob, "!project/file.*" ) ;
544- assert_eq ! ( input. get_path( ) , "project/file.*" ) ;
532+ assert_eq ! ( input. get_path( ) , "! project/file.*" ) ;
545533 assert ! ( !input. is_workspace_relative( ) ) ;
546534 assert ! ( input. is_negated( ) ) ;
547535
548536 let input = create_glob_input ( "!./project/file.*" ) ;
549537
550538 assert_eq ! ( input. glob, "!project/file.*" ) ;
551- assert_eq ! ( input. get_path( ) , "project/file.*" ) ;
539+ assert_eq ! ( input. get_path( ) , "! project/file.*" ) ;
552540 assert ! ( !input. is_workspace_relative( ) ) ;
553541 assert ! ( input. is_negated( ) ) ;
554542
555543 let input = create_glob_input ( "./!project/file.*" ) ;
556544
557545 assert_eq ! ( input. glob, "!project/file.*" ) ;
558- assert_eq ! ( input. get_path( ) , "project/file.*" ) ;
546+ assert_eq ! ( input. get_path( ) , "! project/file.*" ) ;
559547 assert ! ( !input. is_workspace_relative( ) ) ;
560548 assert ! ( input. is_negated( ) ) ;
561549 }
@@ -575,14 +563,14 @@ mod input_shape {
575563 let input = create_glob_input ( "!/root/file.*" ) ;
576564
577565 assert_eq ! ( input. glob, "!/root/file.*" ) ;
578- assert_eq ! ( input. get_path( ) , "root/file.*" ) ;
566+ assert_eq ! ( input. get_path( ) , "! root/file.*" ) ;
579567 assert ! ( input. is_workspace_relative( ) ) ;
580568 assert ! ( input. is_negated( ) ) ;
581569
582570 let input = create_glob_input ( "/!root/file.*" ) ;
583571
584572 assert_eq ! ( input. glob, "!/root/file.*" ) ;
585- assert_eq ! ( input. get_path( ) , "root/file.*" ) ;
573+ assert_eq ! ( input. get_path( ) , "! root/file.*" ) ;
586574 assert ! ( input. is_workspace_relative( ) ) ;
587575 assert ! ( input. is_negated( ) ) ;
588576 }
0 commit comments