pub struct TestScope {
pub component: bool,
pub host: bool,
pub browser: bool,
}Expand description
Scope narrowing for frame test. With no flag, every scope runs — the
real-browser proof included; flags narrow to a subset, and naming
several runs their union.
Fields§
§component: boolRun the Gleam component tests.
host: boolRun the host’s Rust test suite (includes the full-stack boot proof).
browser: boolRun the real-browser proof against the served page.
Implementations§
Source§impl TestScope
impl TestScope
Sourcepub fn is_everything(self) -> bool
pub fn is_everything(self) -> bool
True when no narrowing flag was given: everything runs.
Sourcepub fn component_selected(self) -> bool
pub fn component_selected(self) -> bool
True when the component scope should run.
Sourcepub fn host_selected(self) -> bool
pub fn host_selected(self) -> bool
True when the host scope should run.
Sourcepub fn browser_selected(self) -> bool
pub fn browser_selected(self) -> bool
True when the real-browser scope should run.
Trait Implementations§
Source§impl Args for TestScope
impl Args for TestScope
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreimpl Copy for TestScope
Source§impl FromArgMatches for TestScope
impl FromArgMatches for TestScope
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for TestScope
impl RefUnwindSafe for TestScope
impl Send for TestScope
impl Sync for TestScope
impl Unpin for TestScope
impl UnsafeUnpin for TestScope
impl UnwindSafe for TestScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more