()
| 813 | |
| 814 | #[test] |
| 815 | fn custom_variants_have_no_source() { |
| 816 | // Non-wrapper variants shouldn't claim a source error exists. |
| 817 | let custom_errors: Vec<PristineError> = vec![ |
| 818 | PristineError::ViewNotFound { name: "x".into() }, |
| 819 | PristineError::ViewAlreadyExists { name: "x".into() }, |
| 820 | PristineError::CannotDeleteSharedView { name: "x".into() }, |
| 821 | PristineError::ViewHasChildren { |
| 822 | name: "x".into(), |
| 823 | children: vec!["y".into()], |
| 824 | }, |
| 825 | PristineError::ViewCycleDetected { |
| 826 | name: "a".into(), |
| 827 | parent_name: "b".into(), |
| 828 | }, |
| 829 | PristineError::BrokenViewParent { |
| 830 | view_id: 1, |
| 831 | view_name: "x".into(), |
| 832 | parent_id: 2, |
| 833 | }, |
| 834 | PristineError::WorkingCopySchemaUnavailable, |
| 835 | PristineError::OperationSchemaUnavailable, |
| 836 | PristineError::OperationNotFound { id: "x".into() }, |
| 837 | PristineError::OperationParentNotFound { |
| 838 | operation: "x".into(), |
| 839 | parent: "y".into(), |
| 840 | }, |
| 841 | PristineError::OperationHeadConflict { |
| 842 | scope: "repository".into(), |
| 843 | expected: vec!["x".into()], |
| 844 | actual: vec!["y".into()], |
| 845 | }, |
| 846 | PristineError::EffectPlanNotFound { |
| 847 | operation: "x".into(), |
| 848 | ordinal: 0, |
| 849 | }, |
| 850 | PristineError::WorkingCopyIdentityConflict { |
| 851 | requested_id: "x".into(), |
| 852 | existing_id: "y".into(), |
| 853 | }, |
| 854 | PristineError::ViewHasWorkingCopies { |
| 855 | name: "x".into(), |
| 856 | working_copy_ids: vec!["y".into()], |
| 857 | }, |
| 858 | PristineError::ChangeNotFound { id: 1 }, |
| 859 | PristineError::UnindexedChangeDependencies { change_id: 1 }, |
| 860 | PristineError::ChangeDependencyCountMismatch { |
| 861 | change_id: 1, |
| 862 | expected: 2, |
| 863 | actual: 1, |
| 864 | }, |
| 865 | PristineError::MissingRegisteredDependency { |
| 866 | change_id: 1, |
| 867 | dependency: "x".into(), |
| 868 | }, |
| 869 | PristineError::DependencyCycle { cycle: vec![1, 1] }, |
| 870 | PristineError::HashNotFound { hash: "x".into() }, |
| 871 | PristineError::InvalidVertex { |
| 872 | message: "x".into(), |
nothing calls this directly
no outgoing calls
no test coverage detected