toggle menu
mockk
1.13.17
common
jvm
switch theme
search in API
mockk
/
io.mockk.impl
/
InternalPlatform
Internal
Platform
common
jvm
expect
object
InternalPlatform
actual
object
InternalPlatform
Members
Functions
capture
Stack
Trace
Link copied to clipboard
common
jvm
expect
fun
captureStackTrace
(
)
:
(
)
->
List
<
<Error class: unknown class>
>
actual
fun
captureStackTrace
(
)
:
(
)
->
List
<
<Error class: unknown class>
>
copy
Fields
Link copied to clipboard
common
jvm
expect
fun
<
T
:
Any
>
copyFields
(
to
:
T
,
from
:
T
)
actual
fun
<
T
:
Any
>
copyFields
(
to
:
T
,
from
:
T
)
custom
Compute
If
Absent
Link copied to clipboard
common
jvm
expect
fun
<
K
,
V
>
MutableMap
<
K
,
V
>
.
customComputeIfAbsent
(
key
:
K
,
valueFunc
:
(
K
)
->
V
)
:
V
actual
fun
<
K
,
V
>
MutableMap
<
K
,
V
>
.
customComputeIfAbsent
(
key
:
K
,
valueFunc
:
(
K
)
->
V
)
:
V
hkd
Link copied to clipboard
common
jvm
expect
fun
hkd
(
obj
:
Any
)
:
String
actual
fun
hkd
(
obj
:
Any
)
:
String
identity
Map
Link copied to clipboard
common
jvm
expect
fun
<
K
,
V
>
identityMap
(
)
:
MutableMap
<
K
,
V
>
actual
fun
<
K
,
V
>
identityMap
(
)
:
MutableMap
<
K
,
V
>
is
Passed
By
Value
Link copied to clipboard
common
jvm
expect
fun
isPassedByValue
(
cls
:
KClass
<
*
>
)
:
Boolean
actual
fun
isPassedByValue
(
cls
:
KClass
<
*
>
)
:
Boolean
is
Running
Android
Instrumentation
Test
Link copied to clipboard
jvm
fun
isRunningAndroidInstrumentationTest
(
)
:
Boolean
load
Plugin
Link copied to clipboard
jvm
inline
fun
<
T
:
Any
>
loadPlugin
(
className
:
String
,
msg
:
String
=
""
)
:
T
multi
Notifier
Link copied to clipboard
common
jvm
expect
fun
multiNotifier
(
)
:
MultiNotifier
actual
fun
multiNotifier
(
)
:
MultiNotifier
pack
Ref
Link copied to clipboard
common
jvm
expect
fun
packRef
(
arg
:
Any
?
)
:
Any
?
actual
fun
packRef
(
arg
:
Any
?
)
:
Any
?
prettify
Recording
Exception
Link copied to clipboard
common
jvm
expect
fun
prettifyRecordingException
(
ex
:
Throwable
)
:
Throwable
actual
fun
prettifyRecordingException
(
ex
:
Throwable
)
:
Throwable
ref
Link copied to clipboard
common
jvm
expect
fun
ref
(
obj
:
Any
)
:
Ref
actual
fun
ref
(
obj
:
Any
)
:
Ref
synchronized
Link copied to clipboard
common
jvm
expect
inline
fun
<
T
>
synchronized
(
obj
:
Any
,
block
:
(
)
->
T
)
:
T
actual
inline
fun
<
T
>
synchronized
(
obj
:
Any
,
block
:
(
)
->
T
)
:
T
synchronized
Mutable
List
Link copied to clipboard
common
jvm
expect
fun
<
T
>
synchronizedMutableList
(
)
:
MutableList
<
T
>
actual
fun
<
T
>
synchronizedMutableList
(
)
:
MutableList
<
T
>
synchronized
Mutable
Map
Link copied to clipboard
common
jvm
expect
fun
<
K
,
V
>
synchronizedMutableMap
(
)
:
MutableMap
<
K
,
V
>
actual
fun
<
K
,
V
>
synchronizedMutableMap
(
)
:
MutableMap
<
K
,
V
>
time
Link copied to clipboard
common
jvm
expect
fun
time
(
)
:
Long
actual
fun
time
(
)
:
Long
weak
Map
Link copied to clipboard
common
jvm
expect
fun
<
K
,
V
>
weakMap
(
)
:
MutableMap
<
K
,
V
>
actual
fun
<
K
,
V
>
weakMap
(
)
:
MutableMap
<
K
,
V
>
weak
Ref
Link copied to clipboard
common
jvm
expect
fun
weakRef
(
value
:
Any
)
:
WeakRef
actual
fun
weakRef
(
value
:
Any
)
:
WeakRef