Skip to content

Commit

Permalink
Add a comment at BOF warning that it is a generated file (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-osborne committed Feb 20, 2024
1 parent 72628e5 commit ae2e92a
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Add a comment warning that the file is generated
[\#198](https://github.com/ocaml-gospel/ortac/pull/198)
- Add an include option to qcheck-stm cli
[\#181](https://github.com/ocaml-gospel/ortac/pull/181)
- Add a quiet flag
Expand Down
2 changes: 2 additions & 0 deletions examples/lwt_dllist_tests.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Lwt_dllist_spec
module Spec =
struct
Expand Down
2 changes: 2 additions & 0 deletions examples/varray_circular_tests.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Varray_circular_spec
let inside i s =
try
Expand Down
2 changes: 2 additions & 0 deletions examples/varray_tests.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Varray_spec
let inside i s =
try
Expand Down
6 changes: 5 additions & 1 deletion plugins/qcheck-stm/src/reserr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ let pp quiet pp_ok ppf r =
let open Fmt in
match r with
| Ok a, warns -> (
pf ppf "%a@." pp_ok a;
pf ppf
"(* This file is generated by ortac qcheck-stm,@\n\
\ edit how you run the tool instead *)@\n\
%a@."
pp_ok a;
if not quiet then
match warns with [] -> () | warns -> pf stderr "%a@." pp_errors warns)
| Error errs, warns -> pf stderr "%a@." pp_errors (errs @ warns)
Expand Down
2 changes: 2 additions & 0 deletions plugins/qcheck-stm/test/array_stm_tests.expected.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Array
module Spec =
struct
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Conjunctive_clauses
let set_contents c i a_1 =
try
Expand Down
2 changes: 2 additions & 0 deletions plugins/qcheck-stm/test/hashtbl_stm_tests.expected.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Hashtbl
let rec remove_first x xs_1 =
try
Expand Down
2 changes: 2 additions & 0 deletions plugins/qcheck-stm/test/record_stm_tests.expected.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Record
let plus1_1 i =
try
Expand Down
2 changes: 2 additions & 0 deletions plugins/qcheck-stm/test/ref_stm_tests.expected.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Ref
module Spec =
struct
Expand Down
2 changes: 2 additions & 0 deletions plugins/qcheck-stm/test/sequence_model_stm_tests.expected.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(* This file is generated by ortac qcheck-stm,
edit how you run the tool instead *)
open Sequence_model
let length_opt s =
try Some (Ortac_runtime.Gospelstdlib.Sequence.length s)
Expand Down

0 comments on commit ae2e92a

Please sign in to comment.