Coverage Summary for Class: TransactionPeriodMode (com.georgeci.moneysurfer.domain.preferences)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| TransactionPeriodMode |
100%
(1/1)
|
|
100%
(4/4)
|
100%
(31/31)
|
| TransactionPeriodMode$Companion |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(1/1)
|
| Total |
100%
(2/2)
|
|
100%
(5/5)
|
100%
(32/32)
|
package com.georgeci.moneysurfer.domain.preferences
/**
* Date window the transactions list is scoped to. Lives in the preferences package because the
* choice is persisted alongside the other UI preferences; the window maths itself is in
* `domain.util.TransactionPeriodWindow`.
*/
enum class TransactionPeriodMode {
Month,
Week,
/** No date bounds — the list is bounded by paging instead. */
AllTime,
;
companion object {
val DEFAULT: TransactionPeriodMode = Month
}
}