// Copyright Kani Contributors // SPDX-License-Identifier: Apache-2.0 OR MIT // kani-flags: --harness existing --harness check_blah --harness check_foo --exact //! Check that we error out with non-matching filters when --exact is used mod first { #[kani::proof] fn check_foo() { assert!(1 == 2); } #[kani::proof] fn check_blah() { assert!(2 == 2); } /// A harness that will fail verification if it is run. #[kani::proof] fn ignore_third_harness() { assert!(3 == 2); } } // This harness will be picked up #[kani::proof] fn existing() { assert!(1 == 1); } #[kani::proof] fn existing_harness() { assert!(1 == 2); } /// A harness that will fail verification if it is run. #[kani::proof] fn ignored_harness() { assert!(3 == 2); }