Disallow calling #[test]
functions from non-#[test]
code
#3261
Labels
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
forc-test
Everything related to the `forc-test` lib and `forc test` command.
Calling
#[test]
functions from non-test code shouldn't be particularly harmful, but is just a bit confusing and would make supportingdev-dependencies
more complicated (or at least produce confusing results).We should check function calls to ensure
#[test]
functions are never called from non-test code.The text was updated successfully, but these errors were encountered: