File: experiment.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (44 lines) | stat: -rw-r--r-- 624 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- cue.mod/module.cue --
module: "x.test"
language: version: "v0.13.0"
-- off.cue --
off: __test_experiment("off")

-- on.cue --
@experiment(testing)

on: __test_experiment("on")

-- out/compile --
--- off.cue
{
  off: testExperiment("off")
}
--- on.cue
{
  on: testExperiment("on")
}
-- out/eval/stats --
Leaks:  0
Freed:  3
Reused: 1
Allocs: 2
Retain: 0

Unifications: 3
Conjuncts:    4
Disjuncts:    3
-- out/eval --
Errors:
off: testing experiment disabled:
    ./off.cue:1:6

Result:
(_|_){
  // [eval]
  off: (_|_){
    // [eval] off: testing experiment disabled:
    //     ./off.cue:1:6
  }
  on: (string){ "on" }
}