File: performance_test.ml

package info (click to toggle)
ppx-inline-test 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: ml: 1,367; makefile: 15; javascript: 3; ansic: 2; sh: 2
file content (27 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
let%test ("alloc-test-ok" [@tags "x-library-inlining-sensitive"]) = true

(* Let's just pretend we have a test, say an alloc test, that only works with
   inlining, and is currently broken. *)
let%test ("alloc-test-fail" [@tags "x-library-inlining-sensitive"]) = false

let%test_module "alloc-test-module2" =
  (module struct
    let%test _ = true
    let%test (_ [@tags "x-library-inlining-sensitive"]) = true
  end)
;;

let%test_module ("alloc-test-module" [@tags "x-library-inlining-sensitive"]) =
  (module struct
    let%test "ok" = true
    let%test "fail" = false
  end)
;;

let%test_module ("early-cutoff-module" [@tags "x-library-inlining-sensitive"]) =
  (module struct
    (* the toplevel of this module should not even be run when we aren't running
       the inlining-sensitive tests. *)
    let () = assert false
  end)
;;