isTestOpen

fun TestDetails.isTestOpen(): Boolean

Used to check whether the test is open for accepting answers.

If the TestDetails.localDateTime is within LocalDateTime.now and LocalDateTime.now + the TestDetails.testDurationInMinutes (inclusive), ignoring the seconds, then it returns true. Else, it returns false.