Hello, I want to check whether method of interface...
# konsist
y
Hello, I want to check whether method of interface return type is equal to value wrapped to my own generic value
Copy code
//thing to check
suspend fun getAccounts(
    @Query("account") account: String,
): ApiResult<AccountDto>
Copy code
//test 
apiInterfacesScope
                .assertTrue {
                    it.hasFunction { function ->
                        function.returnType?.asInterfaceDeclaration()?.name == "ApiResult"
                    }
                }
but my code doesn't work
p
Can you post your complete example test?
👍 1