trixnity-test-utils
Toggle table of contents
4.16.1
common
Platform filter
common
Switch theme
Search in API
trixnity-test-utils
trixnity-test-utils
/
net.folivo.trixnity.test.utils
/
TrixnityBaseTest
Trixnity
Base
Test
open
class
TrixnityBaseTest
:
TrixnityLoggedTest
,
CoroutineTest
Members
Members & Extensions
Constructors
Trixnity
Base
Test
Link copied to clipboard
constructor
(
)
Properties
default
Log
Level
Link copied to clipboard
open
val
defaultLogLevel
:
Level
default
Timeout
Link copied to clipboard
open
val
defaultTimeout
:
Duration
?
package
Log
Levels
Link copied to clipboard
open
override
val
packageLogLevels
:
Map
<
String
,
Level
>
test
Scope
Link copied to clipboard
open
override
val
testScope
:
TestScope
trixnity
Log
Level
Link copied to clipboard
open
val
trixnityLogLevel
:
Level
Functions
run
Test
Link copied to clipboard
fun
CoroutineTest
.
runTest
(
timeout
:
Duration
?
=
defaultTimeout
,
testBody
:
suspend
TestScope
.
(
)
->
Unit
)
:
TestResult
fun
<
T
>
CoroutineTest
.
runTest
(
timeout
:
Duration
?
=
defaultTimeout
,
setup
:
suspend
TestScope
.
(
)
->
T
,
testBody
:
suspend
TestScope
.
(
T
)
->
Unit
)
:
TestResult
schedule
Setup
Link copied to clipboard
fun
CoroutineTest
.
scheduleSetup
(
block
:
ScheduledTaskLambda
)
schedule
Teardown
Link copied to clipboard
fun
CoroutineTest
.
scheduleTeardown
(
block
:
ScheduledTaskLambda
)
setup
Logged
Link copied to clipboard
open
fun
setupLogged
(
)
suspend
Lazy
Link copied to clipboard
fun
<
T
>
CoroutineTest
.
suspendLazy
(
block
:
suspend
TestScope
.
(
)
->
T
)
:
LazySuspend
<
T
>