lf-lang / reactor-uc

A lightweight reactor runtime targeted at resource-constrained embedded systems
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Actions and input ports can hold multiple events (in FIFO) #12

Closed erlingrj closed 1 month ago

erlingrj commented 1 month ago

Lifts the restriction on a single outstanding event per action/input. Now we can have a FIFO of events per action/input

github-actions[bot] commented 1 month ago

Coverage after merging fifo into main will be

87.76%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   action.c84.31%50%100%89.47%21–22, 25, 28, 46–47, 50, 53
   builtin_triggers.c100%100%100%100%
   connection.c68.42%33.33%100%76.92%10–11, 11, 11–12, 14, 16–17, 22, 5, 7, 7
   environment.c91.94%100%77.78%93.88%40, 45–46
   port.c95.56%75%100%100%14, 23
   queues.c72.33%53.85%91.67%80%100, 17–18, 22–24, 24, 24–25, 30–31, 31, 31, 33–36, 36, 36, 36, 36–37, 39, 39, 39, 39, 39–40, 44, 44, 44–46, 48, 54–55, 71–75, 89, 94
   reaction.c91.04%77.27%100%97.56%26–27, 36, 38, 43, 7
   reactor.c74.55%50%100%79.49%11, 16–17, 17, 17–18, 20, 28, 31–32, 32, 32–33, 35
   scheduler.c96.24%87.50%100%100%100–101, 62, 78, 94
   tag.c33.68%26.09%40%40.91%21, 23, 26–27, 27, 27, 27, 27–28, 30, 30, 30, 30, 30–31, 33, 33, 33–34, 36–37, 37, 37–38, 40, 40, 40, 40, 40–41, 43, 43, 43, 43, 43–44, 46, 56–57, 59–60, 66, 70–71, 86–88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88–90, 92
   timer.c100%100%100%100%
   trigger.c96.20%81.25%100%100%35, 40, 9
   trigger_value.c85.29%37.50%100%100%16, 18, 7, 7, 7
src/platform
   posix.c83.56%57.14%90.91%89.58%24, 29–30, 41, 44, 54–56, 64, 70, 76