https://kotlinlang.org logo
#test
Title
# test
a

abhinaygupta

03/25/2024, 5:50 PM
I have a private variable of another class which is declared and initialised inside my class. this variable calls its class functions inside my current class functions internally. how to test this using MockK in kotlin? Since for testing , i require to mock this variable but it is private.
j

Javier

03/25/2024, 5:52 PM
you shouldn’t test anything that is private