idea-plugin / arrow.meta.ide.testing.env.resolution / ResolutionSyntax

ResolutionSyntax

interface ResolutionSyntax

Functions

fails this extension denotes that any test result in the test environment fails. Thereby, the Ide resolution always fails, regardless of A.open fun <F : IdeSyntax, A> IdeTestSyntax.fails(message: String = "Failing Resolution"): IdeResolution<F, A>
failsWhen a convenience function to express failsWith in boolean logic.open fun <F : IdeSyntax, A> IdeTestSyntax.failsWhen(message: String, transform: F.(result: A) -> Boolean): IdeResolution<F, A>
failsWith semantic sugar to define an IdeResolution that given transform fails.open fun <F : IdeSyntax, A> IdeTestSyntax.failsWith(message: String, transform: F.(result: A) -> A?): IdeResolution<F, A>
resolves this extension denotes that any test result in the test environment is accepted as a valid output. Thereby, the Ide resolution always completes successfully, regardless of A.open fun <F : IdeSyntax, A> IdeTestSyntax.resolves(message: String = "Any result is accepted."): IdeResolution<F, A>
resolvesWhen a convenience function to express resolvesWith in boolean logic.open fun <F : IdeSyntax, A> IdeTestSyntax.resolvesWhen(message: String, transform: F.(result: A) -> Boolean): IdeResolution<F, A>
resolvesWith semantic sugar to define an IdeResolution that given transform completes successfully.open fun <F : IdeSyntax, A> IdeTestSyntax.resolvesWith(message: String, transform: F.(result: A) -> A?): IdeResolution<F, A>

Inheritors

IdeTestSyntax interface IdeTestSyntax : IdeTestTypeSyntax, LineMarkerTestSyntax, IconProviderTestSyntax, InspectionTestSyntax, ResolutionSyntax, FoldingTestSyntax, GitSyntax, GradleSyntax

Do you like Arrow?

Arrow Org
<