• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MinaProtocol / mina / 1612

21 Oct 2024 08:28AM UTC coverage: 61.111% (+0.02%) from 61.093%
1612

push

buildkite

web-flow
Merge pull request #16255 from MinaProtocol/release/3.0.2

682 of 1335 new or added lines in 129 files covered. (51.09%)

148 existing lines in 47 files now uncovered.

47180 of 77204 relevant lines covered (61.11%)

555482.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

11.76
/src/lib/integration_test_lib/network_time_span.ml
1
open Core_kernel
3✔
2

3
type t = Epochs of int | Slots of int | Literal of Time.Span.t
4

5
let to_span t ~(constants : Test_config.constants) =
6
  let open Int64 in
×
7
  let slots n =
8
    Time.Span.of_ms
×
NEW
9
      (to_float
×
NEW
10
         (n * of_int constants.constraint_constants.block_window_duration_ms) )
×
11
  in
12
  match t with
13
  | Epochs n ->
×
14
      slots
NEW
15
        (of_int n * of_int constants.genesis_constants.protocol.slots_per_epoch)
×
16
  | Slots n ->
×
17
      slots (of_int n)
×
18
  | Literal span ->
×
19
      span
20

21
let to_string ~constants t =
22
  match t with
×
23
  | Epochs n ->
×
24
      Printf.sprintf "%d epochs == %s" n
25
        (Time.Span.to_string_hum (to_span ~constants t))
×
26
  | Slots n ->
×
27
      Printf.sprintf "%d slots == %s" n
28
        (Time.Span.to_string_hum (to_span ~constants t))
×
29
  | Literal t ->
×
30
      Time.Span.to_string_hum t
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc