FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroTestIsolationLevel

    enum · ferroui-headless · v0.5.0

    enum FerroTestIsolationLevel
    

    Defines the isolation level for headless unit tests, controlling how the application and its associated dispatcher are managed between test runs.

    View source

    Members

    PerAssembly

    PerAssembly
    

    Reuses a single application and dispatcher instance across all tests within the assembly.

    Tests must not rely on any global or persistent state that could leak between runs. Headless framework won't dispose any resources after tests when using this mode.

    Source

    PerTest

    PerTest
    

    Recreates the application and dispatcher for each individual test method.

    This mode ensures complete test isolation, and should be used for tests that modify global application state or rely on a clean dispatcher environment. This is the default isolation level if none is specified.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.