Skip to content

Commit c5f4363

Browse files
committed
And update snapshots
1 parent bf5ead7 commit c5f4363

10 files changed

+55
-14
lines changed

hugr-core/tests/snapshots/model__roundtrip_add.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ expression: ast
1212

1313
(import core.fn)
1414

15+
(import core.meta.func_name)
16+
1517
(import arithmetic.int.types.int)
1618

1719
(declare-operation
@@ -29,6 +31,7 @@ expression: ast
2931
(core.fn
3032
[(arithmetic.int.types.int 6) (arithmetic.int.types.int 6)]
3133
[(arithmetic.int.types.int 6)])
34+
(meta (core.meta.func_name ""))
3235
(dfg [%0 %1] [%2]
3336
(signature
3437
(core.fn

hugr-core/tests/snapshots/model__roundtrip_call.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-call.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

@@ -16,6 +16,8 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-call
1616

1717
(import arithmetic.int.types.int)
1818

19+
(import core.meta.func_name)
20+
1921
(declare-func
2022
example.callee
2123
(core.fn [arithmetic.int.types.int] [arithmetic.int.types.int])
@@ -25,6 +27,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-call
2527
(define-func
2628
example.caller
2729
(core.fn [arithmetic.int.types.int] [arithmetic.int.types.int])
30+
(meta (core.meta.func_name ""))
2831
(meta
2932
(compat.meta_json
3033
"description"
@@ -43,6 +46,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-call
4346
(define-func
4447
example.load
4548
(core.fn [] [(core.fn [arithmetic.int.types.int] [arithmetic.int.types.int])])
49+
(meta (core.meta.func_name ""))
4650
(dfg [] [%0]
4751
(signature
4852
(core.fn

hugr-core/tests/snapshots/model__roundtrip_cfg.snap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cfg.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

@@ -14,9 +14,12 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cfg.
1414

1515
(import core.fn)
1616

17+
(import core.meta.func_name)
18+
1719
(import core.adt)
1820

1921
(define-func example.cfg_loop (param ?0 core.type) (core.fn [?0] [?0])
22+
(meta (core.meta.func_name ""))
2023
(dfg [%0] [%1]
2124
(signature (core.fn [?0] [?0]))
2225
(cfg [%0] [%1]
@@ -32,6 +35,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cfg.
3235
(signature (core.fn [?0] [(core.adt [[?0] [?0]])])))))))))
3336

3437
(define-func example.cfg_order (param ?0 core.type) (core.fn [?0] [?0])
38+
(meta (core.meta.func_name ""))
3539
(dfg [%0] [%1]
3640
(signature (core.fn [?0] [?0]))
3741
(cfg [%0] [%1]

hugr-core/tests/snapshots/model__roundtrip_cond.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ expression: ast
1212

1313
(import core.fn)
1414

15+
(import core.meta.func_name)
16+
1517
(import core.adt)
1618

1719
(import arithmetic.int.types.int)
@@ -29,6 +31,7 @@ expression: ast
2931
(core.fn
3032
[(core.adt [[] []]) (arithmetic.int.types.int 6)]
3133
[(arithmetic.int.types.int 6)])
34+
(meta (core.meta.func_name ""))
3235
(dfg [%0 %1] [%2]
3336
(signature
3437
(core.fn

hugr-core/tests/snapshots/model__roundtrip_const.snap

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-const.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

@@ -14,11 +14,13 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
1414

1515
(import arithmetic.int.const)
1616

17-
(import arithmetic.float.const_f64)
17+
(import core.meta.func_name)
18+
19+
(import arithmetic.int.types.int)
1820

1921
(import core.const.adt)
2022

21-
(import arithmetic.int.types.int)
23+
(import arithmetic.float.const_f64)
2224

2325
(import collections.array.const)
2426

@@ -29,6 +31,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
2931
(import core.adt)
3032

3133
(define-func example.bools (core.fn [] [(core.adt [[] []]) (core.adt [[] []])])
34+
(meta (core.meta.func_name ""))
3235
(dfg [] [%0 %1]
3336
(signature (core.fn [] [(core.adt [[] []]) (core.adt [[] []])]))
3437
((core.load_const (core.const.adt [[] []] _ 0 [])) [] [%0]
@@ -43,6 +46,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
4346
[(core.adt
4447
[[(collections.array.array 5 (arithmetic.int.types.int 6))
4548
arithmetic.float.types.float64]])])
49+
(meta (core.meta.func_name ""))
4650
(dfg [] [%0]
4751
(signature
4852
(core.fn
@@ -74,6 +78,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
7478
arithmetic.float.types.float64]])])))))
7579

7680
(define-func example.f64-json (core.fn [] [arithmetic.float.types.float64])
81+
(meta (core.meta.func_name ""))
7782
(dfg [] [%0 %1]
7883
(signature
7984
(core.fn

hugr-core/tests/snapshots/model__roundtrip_constraints.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-constraints.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

@@ -16,6 +16,8 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
1616

1717
(import core.fn)
1818

19+
(import core.meta.func_name)
20+
1921
(declare-func
2022
array.replicate
2123
(param ?0 core.nat)
@@ -37,4 +39,5 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-cons
3739
(param ?0 core.type)
3840
(where (core.nonlinear ?0))
3941
(core.fn [?0] [?0 ?0])
42+
(meta (core.meta.func_name ""))
4043
(dfg [%0] [%0 %0] (signature (core.fn [?0] [?0 ?0]))))

hugr-core/tests/snapshots/model__roundtrip_entrypoint.snap

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-entrypoint.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

77
(mod)
88

99
(import core.fn)
1010

11+
(import core.meta.func_name)
12+
1113
(import core.entrypoint)
1214

1315
(define-func main (core.fn [] [])
16+
(meta (core.meta.func_name ""))
1417
(dfg (signature (core.fn [] [])) (meta core.entrypoint)))
1518

1619
(mod)
1720

1821
(import core.fn)
1922

23+
(import core.meta.func_name)
24+
2025
(import core.entrypoint)
2126

2227
(define-func wrapper_dfg (core.fn [] [])
28+
(meta (core.meta.func_name ""))
2329
(dfg (signature (core.fn [] [])) (meta core.entrypoint)))
2430

2531
(mod)
@@ -30,11 +36,14 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-entr
3036

3137
(import core.fn)
3238

39+
(import core.meta.func_name)
40+
3341
(import core.entrypoint)
3442

3543
(import core.adt)
3644

3745
(define-func wrapper_cfg (core.fn [] [])
46+
(meta (core.meta.func_name ""))
3847
(dfg
3948
(signature (core.fn [] []))
4049
(cfg

hugr-core/tests/snapshots/model__roundtrip_loop.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-loop.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

@@ -12,9 +12,12 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-loop
1212

1313
(import core.fn)
1414

15+
(import core.meta.func_name)
16+
1517
(import core.adt)
1618

1719
(define-func example.loop (param ?0 core.type) (core.fn [?0] [?0])
20+
(meta (core.meta.func_name ""))
1821
(dfg [%0] [%1]
1922
(signature (core.fn [?0] [?0]))
2023
(tail-loop [%0] [%1]

hugr-core/tests/snapshots/model__roundtrip_order.snap

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ expression: ast
1414

1515
(import core.fn)
1616

17-
(import core.order_hint.order)
17+
(import core.meta.func_name)
1818

1919
(import arithmetic.int.types.int)
2020

21+
(import core.order_hint.order)
22+
2123
(declare-operation
2224
arithmetic.int.ineg
2325
(param ?0 core.nat)
@@ -37,6 +39,7 @@ expression: ast
3739
(arithmetic.int.types.int 6)
3840
(arithmetic.int.types.int 6)
3941
(arithmetic.int.types.int 6)])
42+
(meta (core.meta.func_name ""))
4043
(dfg [%0 %1 %2 %3] [%4 %5 %6 %7]
4144
(signature
4245
(core.fn

hugr-core/tests/snapshots/model__roundtrip_params.snap

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
---
22
source: hugr-core/tests/model.rs
3-
expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-params.edn\"))"
3+
expression: ast
44
---
55
(hugr 0)
66

77
(mod)
88

9-
(import core.bytes)
10-
11-
(import core.nat)
12-
139
(import core.call)
1410

1511
(import core.type)
1612

13+
(import core.meta.func_name)
14+
15+
(import core.bytes)
16+
17+
(import core.nat)
18+
1719
(import core.fn)
1820

1921
(import core.str)
@@ -25,6 +27,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-para
2527
(param ?0 core.type)
2628
(param ?1 core.type)
2729
(core.fn [?0 ?1] [?1 ?0])
30+
(meta (core.meta.func_name ""))
2831
(dfg [%0 %1] [%1 %0] (signature (core.fn [?0 ?1] [?1 ?0]))))
2932

3033
(declare-func
@@ -36,6 +39,7 @@ expression: "roundtrip(include_str!(\"../../hugr-model/tests/fixtures/model-para
3639
(core.fn [] []))
3740

3841
(define-func example.call_literals (core.fn [] [])
42+
(meta (core.meta.func_name ""))
3943
(dfg
4044
(signature (core.fn [] []))
4145
((core.call

0 commit comments

Comments
 (0)