@@ -1698,6 +1698,7 @@ mod tests {
16981698 paused_at : None ,
16991699 total_paused_duration : 0 ,
17001700 notes : String :: new ( ) ,
1701+ current_exercise_from_pending : false ,
17011702 } ;
17021703 native_storage:: put_item ( native_storage:: STORE_SESSIONS , & session. id , & session) . unwrap ( ) ;
17031704 let loaded: Vec < WorkoutSession > =
@@ -1724,6 +1725,7 @@ mod tests {
17241725 paused_at : None ,
17251726 total_paused_duration : 0 ,
17261727 notes : String :: new ( ) ,
1728+ current_exercise_from_pending : false ,
17271729 } ;
17281730 let s2 = WorkoutSession {
17291731 id : id. into ( ) ,
@@ -1737,6 +1739,7 @@ mod tests {
17371739 paused_at : None ,
17381740 total_paused_duration : 0 ,
17391741 notes : String :: new ( ) ,
1742+ current_exercise_from_pending : false ,
17401743 } ;
17411744 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id, & s1) . unwrap ( ) ;
17421745 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id, & s2) . unwrap ( ) ;
@@ -1770,6 +1773,7 @@ mod tests {
17701773 paused_at : None ,
17711774 total_paused_duration : 0 ,
17721775 notes : String :: new ( ) ,
1776+ current_exercise_from_pending : false ,
17731777 } ;
17741778 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id, & session) . unwrap ( ) ;
17751779 native_storage:: delete_item ( native_storage:: STORE_SESSIONS , id) . unwrap ( ) ;
@@ -1948,6 +1952,7 @@ mod tests {
19481952 paused_at : None ,
19491953 total_paused_duration : 0 ,
19501954 notes : String :: new ( ) ,
1955+ current_exercise_from_pending : false ,
19511956 } ;
19521957 native_storage:: put_item ( native_storage:: STORE_SESSIONS , & session. id , & session) . unwrap ( ) ;
19531958 let loaded: Vec < WorkoutSession > =
@@ -2002,6 +2007,7 @@ mod tests {
20022007 paused_at : None ,
20032008 total_paused_duration : 0 ,
20042009 notes : String :: new ( ) ,
2010+ current_exercise_from_pending : false ,
20052011 } ;
20062012 let done = WorkoutSession {
20072013 id : "paged_done" . into ( ) ,
@@ -2015,6 +2021,7 @@ mod tests {
20152021 paused_at : None ,
20162022 total_paused_duration : 0 ,
20172023 notes : String :: new ( ) ,
2024+ current_exercise_from_pending : false ,
20182025 } ;
20192026 native_storage:: put_item ( native_storage:: STORE_SESSIONS , & active. id , & active) . unwrap ( ) ;
20202027 native_storage:: put_item ( native_storage:: STORE_SESSIONS , & done. id , & done) . unwrap ( ) ;
@@ -2047,6 +2054,7 @@ mod tests {
20472054 paused_at : None ,
20482055 total_paused_duration : 0 ,
20492056 notes : String :: new ( ) ,
2057+ current_exercise_from_pending : false ,
20502058 } ;
20512059 native_storage:: put_item ( native_storage:: STORE_SESSIONS , & s. id , & s) . unwrap ( ) ;
20522060 }
@@ -2094,6 +2102,7 @@ mod tests {
20942102 paused_at : None ,
20952103 total_paused_duration : 0 ,
20962104 notes : String :: new ( ) ,
2105+ current_exercise_from_pending : false ,
20972106 }
20982107 }
20992108 fn make_exercise_log ( exercise_id : & str , start : u64 , end : Option < u64 > ) -> ExerciseLog {
@@ -2126,6 +2135,7 @@ mod tests {
21262135 paused_at : None ,
21272136 total_paused_duration : 0 ,
21282137 notes : String :: new ( ) ,
2138+ current_exercise_from_pending : false ,
21292139 } ;
21302140 let done = WorkoutSession {
21312141 id : id_done. into ( ) ,
@@ -2139,6 +2149,7 @@ mod tests {
21392149 paused_at : None ,
21402150 total_paused_duration : 0 ,
21412151 notes : String :: new ( ) ,
2152+ current_exercise_from_pending : false ,
21422153 } ;
21432154 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id_active, & active) . unwrap ( ) ;
21442155 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id_done, & done) . unwrap ( ) ;
@@ -2192,6 +2203,7 @@ mod tests {
21922203 paused_at : None ,
21932204 total_paused_duration : 0 ,
21942205 notes : String :: new ( ) ,
2206+ current_exercise_from_pending : false ,
21952207 } ;
21962208 native_storage:: put_item ( native_storage:: STORE_SESSIONS , id, & session) . unwrap ( ) ;
21972209 let rows = native_storage:: compute_bests_rows ( ) . expect ( "compute_bests_rows failed" ) ;
0 commit comments