pub struct LuaTestOptions { /* private fields */ }Expand description
Options of a test run.
Implementations§
Source§impl LuaTestOptions
impl LuaTestOptions
Sourcepub fn campaign(&self) -> &Option<String>
pub fn campaign(&self) -> &Option<String>
Campaign whose vanilla scripts to load, like main_warhammer. If None, only the script libraries and
the mods are loaded, which is faster and less affected by engine behavior the harness doesn’t emulate.
Sourcepub fn faction_keys(&self) -> &Vec<String>
pub fn faction_keys(&self) -> &Vec<String>
Keys of the factions in the game’s DB. Scripts looking them up get a faction even if tests didn’t set it up.
Sourcepub fn region_keys(&self) -> &Vec<String>
pub fn region_keys(&self) -> &Vec<String>
Keys of the regions in the game’s DB. Scripts looking them up get a region even if tests didn’t set it up.
Source§impl LuaTestOptions
impl LuaTestOptions
Sourcepub fn set_campaign(&mut self, val: Option<String>) -> &mut Self
pub fn set_campaign(&mut self, val: Option<String>) -> &mut Self
Campaign whose vanilla scripts to load, like main_warhammer. If None, only the script libraries and
the mods are loaded, which is faster and less affected by engine behavior the harness doesn’t emulate.
Sourcepub fn set_faction_keys(&mut self, val: Vec<String>) -> &mut Self
pub fn set_faction_keys(&mut self, val: Vec<String>) -> &mut Self
Keys of the factions in the game’s DB. Scripts looking them up get a faction even if tests didn’t set it up.
Sourcepub fn set_region_keys(&mut self, val: Vec<String>) -> &mut Self
pub fn set_region_keys(&mut self, val: Vec<String>) -> &mut Self
Keys of the regions in the game’s DB. Scripts looking them up get a region even if tests didn’t set it up.
Trait Implementations§
Source§impl Clone for LuaTestOptions
impl Clone for LuaTestOptions
Source§fn clone(&self) -> LuaTestOptions
fn clone(&self) -> LuaTestOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LuaTestOptions
impl Debug for LuaTestOptions
Source§impl Default for LuaTestOptions
impl Default for LuaTestOptions
Source§fn default() -> LuaTestOptions
fn default() -> LuaTestOptions
Source§impl<'de> Deserialize<'de> for LuaTestOptions
impl<'de> Deserialize<'de> for LuaTestOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LuaTestOptions
impl PartialEq for LuaTestOptions
Source§impl Serialize for LuaTestOptions
impl Serialize for LuaTestOptions
impl StructuralPartialEq for LuaTestOptions
Auto Trait Implementations§
impl Freeze for LuaTestOptions
impl RefUnwindSafe for LuaTestOptions
impl Send for LuaTestOptions
impl Sync for LuaTestOptions
impl Unpin for LuaTestOptions
impl UnsafeUnpin for LuaTestOptions
impl UnwindSafe for LuaTestOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeSend for T
impl<T> MaybeSync for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.