pub struct KotlinAndroidE2eCodegen;Expand description
Kotlin Android e2e code generator. Emits a host-JVM test project that depends on the AAR-bundled Java facade and Kotlin wrapper via sourceSets and JNA, without requiring an Android emulator.
Trait Implementations§
Source§impl E2eCodegen for KotlinAndroidE2eCodegen
impl E2eCodegen for KotlinAndroidE2eCodegen
Source§fn render_snippet_body_with_functions(
&self,
fixture: &Fixture,
e2e_config: &E2eConfig,
config: &ResolvedCrateConfig,
type_defs: &[TypeDef],
enums: &[EnumDef],
functions: &[FunctionDef],
_errors: &[ErrorDef],
) -> Result<String>
fn render_snippet_body_with_functions( &self, fixture: &Fixture, e2e_config: &E2eConfig, config: &ResolvedCrateConfig, type_defs: &[TypeDef], enums: &[EnumDef], functions: &[FunctionDef], _errors: &[ErrorDef], ) -> Result<String>
Without this override, the trait default forwards to Self::render_snippet_body and
silently drops functions, so the docs-snippet field-access oracle can only anchor a
call’s result type via a same-named IR method rather than the free function functions
carries – misresolving the root type (and every field-availability verdict downstream of
it) whenever an unrelated method happens to share the call’s name. The e2e TEST generator
(project::generate) already receives functions correctly; this keeps the documentation
snippet path anchored at the exact same declared result type. Mirrors
kotlin.rs::render_snippet_body_with_functions. ~keep
Source§fn generate(
&self,
groups: &[FixtureGroup],
e2e_config: &E2eConfig,
config: &ResolvedCrateConfig,
type_defs: &[TypeDef],
enums: &[EnumDef],
functions: &[FunctionDef],
_errors: &[ErrorDef],
) -> Result<Vec<GeneratedFile>>
fn generate( &self, groups: &[FixtureGroup], e2e_config: &E2eConfig, config: &ResolvedCrateConfig, type_defs: &[TypeDef], enums: &[EnumDef], functions: &[FunctionDef], _errors: &[ErrorDef], ) -> Result<Vec<GeneratedFile>>
Source§fn render_snippet_body(
&self,
fixture: &Fixture,
e2e_config: &E2eConfig,
config: &ResolvedCrateConfig,
type_defs: &[TypeDef],
enums: &[EnumDef],
) -> Result<String>
fn render_snippet_body( &self, fixture: &Fixture, e2e_config: &E2eConfig, config: &ResolvedCrateConfig, type_defs: &[TypeDef], enums: &[EnumDef], ) -> Result<String>
Source§fn language_name(&self) -> &'static str
fn language_name(&self) -> &'static str
Source§fn supported_assertion_types(&self) -> Vec<&'static str>
fn supported_assertion_types(&self) -> Vec<&'static str>
type values this backend can render. Read moreSource§fn generate_gated(
&self,
groups: &[FixtureGroup],
e2e_config: &E2eConfig,
config: &ResolvedCrateConfig,
type_defs: &[TypeDef],
enums: &[EnumDef],
functions: &[FunctionDef],
errors: &[ErrorDef],
) -> Result<Vec<GeneratedFile>>
fn generate_gated( &self, groups: &[FixtureGroup], e2e_config: &E2eConfig, config: &ResolvedCrateConfig, type_defs: &[TypeDef], enums: &[EnumDef], functions: &[FunctionDef], errors: &[ErrorDef], ) -> Result<Vec<GeneratedFile>>
Self::generate. Read moreAuto Trait Implementations§
impl Freeze for KotlinAndroidE2eCodegen
impl RefUnwindSafe for KotlinAndroidE2eCodegen
impl Send for KotlinAndroidE2eCodegen
impl Sync for KotlinAndroidE2eCodegen
impl Unpin for KotlinAndroidE2eCodegen
impl UnsafeUnpin for KotlinAndroidE2eCodegen
impl UnwindSafe for KotlinAndroidE2eCodegen
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 more