nukadoko 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +541 -3
- data/README.ja.md +20 -5
- data/README.md +12 -6
- data/docs/ci.ja.md +542 -0
- data/docs/ci.md +635 -0
- data/docs/commands.ja.md +1524 -0
- data/docs/commands.md +1281 -0
- data/docs/engines.json +19 -0
- data/docs/execution-events.ja.md +336 -0
- data/docs/execution-events.md +423 -0
- data/docs/glossary.json +1348 -0
- data/docs/guide.ja.md +733 -0
- data/docs/guide.md +815 -0
- data/docs/intent.ja.md +133 -0
- data/docs/intent.md +156 -0
- data/docs/layout.ja.md +442 -0
- data/docs/layout.md +399 -0
- data/docs/releasing.ja.md +186 -0
- data/docs/releasing.md +237 -0
- data/docs/ruby/reference.ja.md +302 -0
- data/docs/ruby/reference.md +368 -0
- data/docs/spec.ja.md +8916 -0
- data/docs/spec.md +11250 -0
- data/docs/tutorial.ja.md +451 -0
- data/docs/tutorial.md +458 -0
- data/docs/typescript/adopting.ja.md +231 -0
- data/docs/typescript/adopting.md +251 -0
- data/docs/typescript/doors.ja.md +301 -0
- data/docs/typescript/doors.md +329 -0
- data/docs/typescript/migration-playwright-test.ja.md +189 -0
- data/docs/typescript/migration-playwright-test.md +212 -0
- data/docs/typescript/migration.ja.md +391 -0
- data/docs/typescript/migration.md +505 -0
- data/docs/typescript/reference.ja.md +176 -0
- data/docs/typescript/reference.md +197 -0
- data/docs/typescript/upgrading.ja.md +1774 -0
- data/docs/typescript/upgrading.md +2224 -0
- data/docs/web-app.ja.md +627 -0
- data/docs/web-app.md +659 -0
- data/docs/writing-scenarios.ja.md +544 -0
- data/docs/writing-scenarios.md +563 -0
- data/lib/nukadoko/base.rb +12 -5
- data/lib/nukadoko/changed_files.rb +95 -0
- data/lib/nukadoko/check.rb +459 -51
- data/lib/nukadoko/claim_drops.rb +271 -0
- data/lib/nukadoko/claim_line.rb +24 -4
- data/lib/nukadoko/claim_rules.rb +143 -1
- data/lib/nukadoko/claim_sides.rb +157 -9
- data/lib/nukadoko/cli.rb +395 -48
- data/lib/nukadoko/codes.json +246 -21
- data/lib/nukadoko/codes.rb +21 -4
- data/lib/nukadoko/command.rb +120 -13
- data/lib/nukadoko/command_help.rb +128 -0
- data/lib/nukadoko/compat.rb +469 -0
- data/lib/nukadoko/criteria.rb +1 -1
- data/lib/nukadoko/definition.rb +157 -7
- data/lib/nukadoko/error_frames.rb +6 -3
- data/lib/nukadoko/events/count.rb +146 -0
- data/lib/nukadoko/events/counted.rb +114 -0
- data/lib/nukadoko/events/format.rb +257 -0
- data/lib/nukadoko/events/lists.rb +154 -0
- data/lib/nukadoko/events/path.rb +285 -0
- data/lib/nukadoko/events/read.rb +284 -0
- data/lib/nukadoko/events/reader.rb +490 -0
- data/lib/nukadoko/events/selection.rb +252 -0
- data/lib/nukadoko/events/tally.rb +438 -0
- data/lib/nukadoko/features.rb +2 -2
- data/lib/nukadoko/fixtures.rb +160 -35
- data/lib/nukadoko/http_recording.rb +6 -2
- data/lib/nukadoko/intent.rb +364 -0
- data/lib/nukadoko/intent_file.rb +81 -0
- data/lib/nukadoko/intent_view.rb +190 -0
- data/lib/nukadoko/js_json.rb +2 -1
- data/lib/nukadoko/judge.rb +2 -2
- data/lib/nukadoko/judgment_file.rb +1 -1
- data/lib/nukadoko/judgments.rb +4 -4
- data/lib/nukadoko/measure_mcp.rb +202 -0
- data/lib/nukadoko/parts.rb +8 -2
- data/lib/nukadoko/path_view.rb +252 -0
- data/lib/nukadoko/place_rows.rb +161 -0
- data/lib/nukadoko/program.rb +1265 -51
- data/lib/nukadoko/program_log.rb +122 -0
- data/lib/nukadoko/program_shape.rb +385 -0
- data/lib/nukadoko/project_fixtures.rb +43 -10
- data/lib/nukadoko/project_program.rb +5 -4
- data/lib/nukadoko/repeated_prefix.rb +310 -0
- data/lib/nukadoko/report_run.rb +3 -3
- data/lib/nukadoko/run.rb +1148 -159
- data/lib/nukadoko/run_record.rb +70 -46
- data/lib/nukadoko/scaffold.rb +24 -6
- data/lib/nukadoko/schema.rb +15 -2
- data/lib/nukadoko/secrets.rb +55 -5
- data/lib/nukadoko/states.rb +478 -0
- data/lib/nukadoko/step.rb +71 -2
- data/lib/nukadoko/step_fixtures.rb +52 -3
- data/lib/nukadoko/summary.rb +799 -29
- data/lib/nukadoko/table.rb +4 -2
- data/lib/nukadoko/text_fit.rb +20 -7
- data/lib/nukadoko/trace.rb +152 -45
- data/lib/nukadoko/tree_passes.rb +95 -33
- data/lib/nukadoko/underneath.rb +311 -0
- data/lib/nukadoko/version.rb +1 -1
- data/lib/nukadoko/vocabulary.rb +166 -23
- data/lib/nukadoko/walk.rb +2 -2
- data/lib/nukadoko/walk_step.rb +1 -1
- data/lib/nukadoko.rb +23 -0
- data/llms.txt +41 -34
- data/sig/generated/nukadoko/base.rbs +4 -4
- data/sig/generated/nukadoko/changed_files.rbs +42 -0
- data/sig/generated/nukadoko/check.rbs +147 -10
- data/sig/generated/nukadoko/claim_drops.rbs +135 -0
- data/sig/generated/nukadoko/claim_line.rbs +11 -0
- data/sig/generated/nukadoko/claim_rules.rbs +49 -4
- data/sig/generated/nukadoko/claim_sides.rbs +63 -12
- data/sig/generated/nukadoko/cli.rbs +80 -7
- data/sig/generated/nukadoko/codes.rbs +19 -4
- data/sig/generated/nukadoko/command.rbs +68 -1
- data/sig/generated/nukadoko/command_help.rbs +18 -0
- data/sig/generated/nukadoko/compat.rbs +392 -0
- data/sig/generated/nukadoko/criteria.rbs +1 -1
- data/sig/generated/nukadoko/definition.rbs +50 -0
- data/sig/generated/nukadoko/error_frames.rbs +1 -1
- data/sig/generated/nukadoko/events/count.rbs +69 -0
- data/sig/generated/nukadoko/events/counted.rbs +70 -0
- data/sig/generated/nukadoko/events/format.rbs +163 -0
- data/sig/generated/nukadoko/events/lists.rbs +47 -0
- data/sig/generated/nukadoko/events/path.rbs +161 -0
- data/sig/generated/nukadoko/events/read.rbs +109 -0
- data/sig/generated/nukadoko/events/reader.rbs +226 -0
- data/sig/generated/nukadoko/events/selection.rbs +100 -0
- data/sig/generated/nukadoko/events/tally.rbs +227 -0
- data/sig/generated/nukadoko/features.rbs +6 -4
- data/sig/generated/nukadoko/fixtures.rbs +67 -11
- data/sig/generated/nukadoko/http_recording.rbs +1 -1
- data/sig/generated/nukadoko/intent.rbs +132 -0
- data/sig/generated/nukadoko/intent_file.rbs +46 -0
- data/sig/generated/nukadoko/intent_view.rbs +69 -0
- data/sig/generated/nukadoko/judgment_file.rbs +1 -1
- data/sig/generated/nukadoko/judgments.rbs +1 -1
- data/sig/generated/nukadoko/measure_mcp.rbs +104 -0
- data/sig/generated/nukadoko/parts.rbs +2 -2
- data/sig/generated/nukadoko/path_view.rbs +105 -0
- data/sig/generated/nukadoko/place_rows.rbs +43 -0
- data/sig/generated/nukadoko/program.rbs +627 -23
- data/sig/generated/nukadoko/program_log.rbs +67 -0
- data/sig/generated/nukadoko/program_shape.rbs +147 -0
- data/sig/generated/nukadoko/project_fixtures.rbs +16 -3
- data/sig/generated/nukadoko/project_program.rbs +2 -1
- data/sig/generated/nukadoko/repeated_prefix.rbs +172 -0
- data/sig/generated/nukadoko/report_run.rbs +1 -1
- data/sig/generated/nukadoko/run.rbs +286 -41
- data/sig/generated/nukadoko/run_record.rbs +20 -12
- data/sig/generated/nukadoko/scaffold.rbs +3 -0
- data/sig/generated/nukadoko/schema.rbs +5 -0
- data/sig/generated/nukadoko/secrets.rbs +26 -3
- data/sig/generated/nukadoko/states.rbs +214 -0
- data/sig/generated/nukadoko/step.rbs +58 -1
- data/sig/generated/nukadoko/step_fixtures.rbs +39 -0
- data/sig/generated/nukadoko/summary.rbs +256 -2
- data/sig/generated/nukadoko/table.rbs +3 -2
- data/sig/generated/nukadoko/trace.rbs +108 -33
- data/sig/generated/nukadoko/tree_passes.rbs +36 -8
- data/sig/generated/nukadoko/underneath.rbs +141 -0
- data/sig/generated/nukadoko/vocabulary.rbs +45 -6
- data/skills/nukadoko/SKILL.md +18 -18
- data/skills/nukadoko/references/checking-steps.md +16 -83
- data/skills/nukadoko/references/diagnosing.md +6 -6
- data/skills/nukadoko/references/evidence.md +19 -6
- data/skills/nukadoko/references/exploring.md +22 -7
- data/skills/nukadoko/references/fixtures.md +12 -32
- data/skills/nukadoko/references/judgments.md +12 -0
- data/skills/nukadoko/references/maintenance.md +1 -1
- data/skills/nukadoko/references/merge-risk.md +1 -1
- data/skills/nukadoko/references/parts.md +46 -23
- data/skills/nukadoko/references/{perturbed-worlds.md → perturbed-systems.md} +30 -12
- data/skills/nukadoko/references/program.md +168 -169
- data/skills/nukadoko/references/reviewing.md +20 -20
- data/skills/nukadoko/references/ruby/checking-steps.md +106 -0
- data/skills/nukadoko/references/ruby/examples/cli.md +212 -0
- data/skills/nukadoko/references/ruby/fixtures.md +34 -0
- data/skills/nukadoko/references/ruby/program.md +112 -0
- data/skills/nukadoko/references/ruby/step-files.md +115 -0
- data/skills/nukadoko/references/running.md +34 -34
- data/skills/nukadoko/references/scenario-rules.md +7 -6
- data/skills/nukadoko/references/states.md +7 -1
- data/skills/nukadoko/references/step-files.md +41 -120
- data/skills/nukadoko/references/typescript/checking-steps.md +129 -0
- data/skills/nukadoko/references/{examples → typescript/examples}/cli.md +1 -1
- data/skills/nukadoko/references/{examples → typescript/examples}/http-api.md +6 -6
- data/skills/nukadoko/references/{examples → typescript/examples}/workflow.md +1 -1
- data/skills/nukadoko/references/typescript/fixtures.md +56 -0
- data/skills/nukadoko/references/typescript/program.md +111 -0
- data/skills/nukadoko/references/typescript/step-files.md +104 -0
- data/skills/nukadoko/references/verdicts.md +10 -10
- data/skills/nukadoko/references/writing-steps.md +67 -67
- data/skills/nukadoko/references/writing-the-feature.md +1 -1
- data/skills/nukadoko-verification/SKILL.md +13 -8
- metadata +103 -7
- data/skills/nukadoko/references/ruby.md +0 -80
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Generated from lib/nukadoko/states.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
# The states a step declares (`requires`, `gives`, `ends`), read and refused
|
|
4
|
+
# as the TypeScript engine's defineStep refuses them, and the walk that
|
|
5
|
+
# judges one scenario against them: whether a line that requires a state
|
|
6
|
+
# can only be reached with it not held. nuka check reports that walk per
|
|
7
|
+
# feature file, and nuka run refuses a scenario it finds before any of its
|
|
8
|
+
# steps runs, so a scenario never passes one and fails the other.
|
|
9
|
+
#
|
|
10
|
+
# The walk follows the one path on which a line runs at all: every line
|
|
11
|
+
# before it passed. A line no step matches makes every state unknown, and
|
|
12
|
+
# unknown is never reported. It never says a state holds, only that it
|
|
13
|
+
# cannot.
|
|
14
|
+
module Nukadoko
|
|
15
|
+
module Engine
|
|
16
|
+
module States
|
|
17
|
+
class Use < Data
|
|
18
|
+
attr_reader state(): String
|
|
19
|
+
|
|
20
|
+
attr_reader key(): String?
|
|
21
|
+
|
|
22
|
+
def self.new: (String state, String? key) -> instance
|
|
23
|
+
| (state: String, key: String?) -> instance
|
|
24
|
+
|
|
25
|
+
def self.members: () -> [ :state, :key ]
|
|
26
|
+
|
|
27
|
+
def members: () -> [ :state, :key ]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
class Declared < Data
|
|
31
|
+
attr_reader requires(): Array[Use]
|
|
32
|
+
|
|
33
|
+
attr_reader gives(): Array[Use]
|
|
34
|
+
|
|
35
|
+
attr_reader ends(): Array[Use]
|
|
36
|
+
|
|
37
|
+
def self.new: (Array[Use] requires, Array[Use] gives, Array[Use] ends) -> instance
|
|
38
|
+
| (requires: Array[Use], gives: Array[Use], ends: Array[Use]) -> instance
|
|
39
|
+
|
|
40
|
+
def self.members: () -> [ :requires, :gives, :ends ]
|
|
41
|
+
|
|
42
|
+
def members: () -> [ :requires, :gives, :ends ]
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# One requiring line the walk can only reach with the state not held.
|
|
46
|
+
class Draft < Data
|
|
47
|
+
attr_reader index(): Integer
|
|
48
|
+
|
|
49
|
+
attr_reader step_name(): String
|
|
50
|
+
|
|
51
|
+
attr_reader use(): Use
|
|
52
|
+
|
|
53
|
+
attr_reader holder(): String?
|
|
54
|
+
|
|
55
|
+
attr_reader cause(): Hash[Symbol, untyped]
|
|
56
|
+
|
|
57
|
+
attr_reader also(): Array[Integer]
|
|
58
|
+
|
|
59
|
+
def self.new: (Integer index, String step_name, Use use, String? holder, Hash[Symbol, untyped] cause, Array[Integer] also) -> instance
|
|
60
|
+
| (index: Integer, step_name: String, use: Use, holder: String?, cause: Hash[Symbol, untyped], also: Array[Integer]) -> instance
|
|
61
|
+
|
|
62
|
+
def self.members: () -> [ :index, :step_name, :use, :holder, :cause, :also ]
|
|
63
|
+
|
|
64
|
+
def members: () -> [ :index, :step_name, :use, :holder, :cause, :also ]
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# One line of a scenario: the step it binds alone, and the text each
|
|
68
|
+
# capture read, or nil for a line no single step matches.
|
|
69
|
+
class Line < Data
|
|
70
|
+
attr_reader step(): singleton(Step)
|
|
71
|
+
|
|
72
|
+
attr_reader texts(): Hash[String, String]
|
|
73
|
+
|
|
74
|
+
def self.new: (singleton(Step) step, Hash[String, String] texts) -> instance
|
|
75
|
+
| (step: singleton(Step), texts: Hash[String, String]) -> instance
|
|
76
|
+
|
|
77
|
+
def self.members: () -> [ :step, :texts ]
|
|
78
|
+
|
|
79
|
+
def members: () -> [ :step, :texts ]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# What the walk knows of one state just before a line: a fact per
|
|
83
|
+
# holder a line has named, and one for every holder none has. A fact
|
|
84
|
+
# is [:held], [:not_held, the index of the line that ended it or
|
|
85
|
+
# nil], or [:unknown].
|
|
86
|
+
class Facts < Data
|
|
87
|
+
attr_reader by(): Hash[String, Array[untyped]]
|
|
88
|
+
|
|
89
|
+
attr_reader unnamed(): Array[untyped]
|
|
90
|
+
|
|
91
|
+
def self.new: (Hash[String, Array[untyped]] by, Array[untyped] unnamed) -> instance
|
|
92
|
+
| (by: Hash[String, Array[untyped]], unnamed: Array[untyped]) -> instance
|
|
93
|
+
|
|
94
|
+
def self.members: () -> [ :by, :unnamed ]
|
|
95
|
+
|
|
96
|
+
def members: () -> [ :by, :unnamed ]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
LISTS: untyped
|
|
100
|
+
|
|
101
|
+
FORMS: ::String
|
|
102
|
+
|
|
103
|
+
# `signed-in for person`, or `book-open`: how nuka steps names an entry.
|
|
104
|
+
# : (Use) -> String
|
|
105
|
+
def self.describe: (Use) -> String
|
|
106
|
+
|
|
107
|
+
# : (Use) -> String
|
|
108
|
+
def self.quoted: (Use) -> String
|
|
109
|
+
|
|
110
|
+
# The three lists read against the step's args keys, or the problem
|
|
111
|
+
# with the first entry that is not a state a line can hold, in the
|
|
112
|
+
# TypeScript engine's words.
|
|
113
|
+
# : (singleton(Step)) -> (Declared | String)
|
|
114
|
+
def self.read: (singleton(Step)) -> (Declared | String)
|
|
115
|
+
|
|
116
|
+
# : (untyped) -> Use?
|
|
117
|
+
def self.entry_use: (untyped) -> Use?
|
|
118
|
+
|
|
119
|
+
# What every step of a vocabulary says about each state: which name it
|
|
120
|
+
# with a key and which without, and which can give it from a line.
|
|
121
|
+
class Index
|
|
122
|
+
attr_reader states: Hash[String, Hash[Symbol, Array[untyped]]]
|
|
123
|
+
|
|
124
|
+
# : (Array[singleton(Step)]) -> void
|
|
125
|
+
def initialize: (Array[singleton(Step)]) -> void
|
|
126
|
+
|
|
127
|
+
# The states the step's transitive parts give or end.
|
|
128
|
+
# : (singleton(Step)) -> Array[String]
|
|
129
|
+
def parts_of: (singleton(Step)) -> Array[String]
|
|
130
|
+
|
|
131
|
+
# : (String) -> bool
|
|
132
|
+
def mismatched?: (String) -> bool
|
|
133
|
+
|
|
134
|
+
private
|
|
135
|
+
|
|
136
|
+
# : (singleton(Step)) -> Array[String]
|
|
137
|
+
def through_parts: (singleton(Step)) -> Array[String]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Each line of the scenario as the walk reads it: the one step it
|
|
141
|
+
# binds and the text each word or string capture read.
|
|
142
|
+
# : (Array[singleton(Step)], Scenario) -> Array[Line?]
|
|
143
|
+
def self.lines: (Array[singleton(Step)], Scenario) -> Array[Line?]
|
|
144
|
+
|
|
145
|
+
# A {word} capture reads its text as written, and a {string} its text
|
|
146
|
+
# inside the quotes; another type reads a value only the run knows.
|
|
147
|
+
# : (String, String) -> Hash[String, String]?
|
|
148
|
+
def self.captured: (String, String) -> Hash[String, String]?
|
|
149
|
+
|
|
150
|
+
# The holder a line names for `use`: "" for an unkeyed state, the
|
|
151
|
+
# captured text when the key's field is a plain string, or nil when
|
|
152
|
+
# only the run knows it.
|
|
153
|
+
# : (Line, Use) -> String?
|
|
154
|
+
def self.holder_of: (Line, Use) -> String?
|
|
155
|
+
|
|
156
|
+
# Walks the scenario once and returns every requiring line that only
|
|
157
|
+
# one outcome can reach: the state not held. Pure.
|
|
158
|
+
# : (Array[Line?], Index) -> Array[Draft]
|
|
159
|
+
def self.walk: (Array[Line?], Index) -> Array[Draft]
|
|
160
|
+
|
|
161
|
+
# : (Facts, Symbol, String?, Integer) -> Facts
|
|
162
|
+
def self.apply: (Facts, Symbol, String?, Integer) -> Facts
|
|
163
|
+
|
|
164
|
+
# The scenario's state issues by line index, each the message nuka run
|
|
165
|
+
# puts on the line it refuses.
|
|
166
|
+
# : (Array[singleton(Step)], Scenario) -> Hash[Integer, Array[String]]
|
|
167
|
+
def self.refusals: (Array[singleton(Step)], Scenario) -> Hash[Integer, Array[String]]
|
|
168
|
+
|
|
169
|
+
# state-missing over every scenario of one feature file, for nuka
|
|
170
|
+
# check. A Background line reaches the same finding in every
|
|
171
|
+
# scenario, so it is reported once with the folded lines of all of
|
|
172
|
+
# them.
|
|
173
|
+
# : (Array[singleton(Step)], Array[Scenario]) -> Array[Hash[Symbol, untyped]]
|
|
174
|
+
def self.findings: (Array[singleton(Step)], Array[Scenario]) -> Array[Hash[Symbol, untyped]]
|
|
175
|
+
|
|
176
|
+
# Every state some steps name with a key and others without.
|
|
177
|
+
# : (Array[singleton(Step)]) -> Array[Hash[Symbol, untyped]]
|
|
178
|
+
def self.shape_issues: (Array[singleton(Step)]) -> Array[Hash[Symbol, untyped]]
|
|
179
|
+
|
|
180
|
+
# : (Array[String]) -> String
|
|
181
|
+
def self.listed: (Array[String]) -> String
|
|
182
|
+
|
|
183
|
+
# : (Draft, ^(Integer) -> String, Scenario, Array[String]) -> String
|
|
184
|
+
def self.message: (Draft, ^(Integer) -> String, Scenario, Array[String]) -> String
|
|
185
|
+
|
|
186
|
+
# : (Array[String]) -> String
|
|
187
|
+
def self.also_required: (Array[String]) -> String
|
|
188
|
+
|
|
189
|
+
# : (Draft, ^(Integer) -> String, Index, String?) -> String
|
|
190
|
+
def self.fix: (Draft, ^(Integer) -> String, Index, String?) -> String
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# A feature line a pattern matches, for a finding that tells an agent
|
|
194
|
+
# which line to add: a capture becomes the value given for its key, an
|
|
195
|
+
# optional group is dropped (or kept when it stands as a word of its
|
|
196
|
+
# own), an alternation keeps its first alternative, and an escape gives
|
|
197
|
+
# its character. It never runs a parameter type.
|
|
198
|
+
module ExampleLine
|
|
199
|
+
# : (String, Hash[String, String]) -> String
|
|
200
|
+
def self.of: (String, Hash[String, String]) -> String
|
|
201
|
+
|
|
202
|
+
# {word} matches no space, so a holder a {string} capture read
|
|
203
|
+
# elsewhere ("Aki Tanaka") would make a line the step never matches.
|
|
204
|
+
# : (String, Hash[String, String]) -> String
|
|
205
|
+
def self.capture: (String, Hash[String, String]) -> String
|
|
206
|
+
|
|
207
|
+
# : (String, Integer) -> Integer
|
|
208
|
+
def self.skip_optional: (String, Integer) -> Integer
|
|
209
|
+
|
|
210
|
+
# : (String, Integer) -> Integer
|
|
211
|
+
def self.skip_alternatives: (String, Integer) -> Integer
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
@@ -20,6 +20,12 @@ module Nukadoko
|
|
|
20
20
|
def self.pattern: (String) -> String
|
|
21
21
|
| () -> String?
|
|
22
22
|
|
|
23
|
+
# Every wording a line may bind the step by: `pattern` first, then
|
|
24
|
+
# each of `patterns`, as the TypeScript engine reads both. Each one
|
|
25
|
+
# must capture the same keys, which nuka check holds them to.
|
|
26
|
+
# : (*String | Array[String]) -> Array[String]
|
|
27
|
+
def self.patterns: (*String | Array[String]) -> Array[String]
|
|
28
|
+
|
|
23
29
|
# : (String) -> String
|
|
24
30
|
# : () -> String?
|
|
25
31
|
def self.description: (String) -> String
|
|
@@ -40,6 +46,54 @@ module Nukadoko
|
|
|
40
46
|
def self.poll: (untyped) -> untyped
|
|
41
47
|
| () -> untyped
|
|
42
48
|
|
|
49
|
+
# How long `run` (or `observe`) may take, in milliseconds, before the
|
|
50
|
+
# step fails as timed out. Without it the config's stepTimeout
|
|
51
|
+
# applies, twenty minutes by default; there is no value for no
|
|
52
|
+
# limit, since a step that never returns would take the run with it.
|
|
53
|
+
# : (untyped) -> untyped
|
|
54
|
+
# : () -> untyped
|
|
55
|
+
def self.timeout: (untyped) -> untyped
|
|
56
|
+
| () -> untyped
|
|
57
|
+
|
|
58
|
+
# The paths an earlier step's commands changed, by the key a claim
|
|
59
|
+
# reads them as: `files written: { of: RunBuild, change: "added",
|
|
60
|
+
# under: "src/" }`. nukadoko reads the list from that step's record,
|
|
61
|
+
# never from what its code returned.
|
|
62
|
+
# : (Hash[Symbol | String, untyped]) -> Hash[String, untyped]
|
|
63
|
+
# : () -> Hash[String, untyped]
|
|
64
|
+
def self.files: (Hash[Symbol | String, untyped]) -> Hash[String, untyped]
|
|
65
|
+
| () -> Hash[String, untyped]
|
|
66
|
+
|
|
67
|
+
# The counts of an earlier step's execution events, by the key a
|
|
68
|
+
# claim reads them as: `events writes: { of: PlaceScore, count: {
|
|
69
|
+
# kind: "db", op: %w[insert update delete other], committed: true } }`.
|
|
70
|
+
# nukadoko reads the lines of that step's trace from the system's
|
|
71
|
+
# events file, never from what its code returned.
|
|
72
|
+
# : (Hash[Symbol | String, untyped]) -> Hash[String, untyped]
|
|
73
|
+
# : () -> Hash[String, untyped]
|
|
74
|
+
def self.events: (Hash[Symbol | String, untyped]) -> Hash[String, untyped]
|
|
75
|
+
| () -> Hash[String, untyped]
|
|
76
|
+
|
|
77
|
+
# The states a line of this step needs held (`requires`), leaves
|
|
78
|
+
# held (`gives`), and leaves not held (`ends`), each a name
|
|
79
|
+
# ("book-open") or a name and the args key that tells one holder from
|
|
80
|
+
# another (["signed-in", :person]). nuka check walks them through each
|
|
81
|
+
# scenario, and nuka run refuses a scenario that can only reach a line
|
|
82
|
+
# without the state it requires.
|
|
83
|
+
# : (*untyped) -> Array[untyped]
|
|
84
|
+
def self.requires: (*untyped) -> Array[untyped]
|
|
85
|
+
|
|
86
|
+
# : (*untyped) -> Array[untyped]
|
|
87
|
+
def self.gives: (*untyped) -> Array[untyped]
|
|
88
|
+
|
|
89
|
+
# : (*untyped) -> Array[untyped]
|
|
90
|
+
def self.ends: (*untyped) -> Array[untyped]
|
|
91
|
+
|
|
92
|
+
# The three lists read, or nil while one of them is malformed, which
|
|
93
|
+
# Definition reports.
|
|
94
|
+
# : () -> Engine::States::Declared?
|
|
95
|
+
def self.states: () -> Engine::States::Declared?
|
|
96
|
+
|
|
43
97
|
# The steps this one may run through the `call` fixture. A part with no
|
|
44
98
|
# pattern exists only for calls.
|
|
45
99
|
# : (Array[singleton(Step)]) -> Array[singleton(Step)]
|
|
@@ -73,7 +127,7 @@ module Nukadoko
|
|
|
73
127
|
# : () -> String
|
|
74
128
|
def self.step_name: () -> String
|
|
75
129
|
|
|
76
|
-
# A step that runs code may change the
|
|
130
|
+
# A step that runs code may change the system unless it says it does
|
|
77
131
|
# not; a claim step has no action, so it never does.
|
|
78
132
|
# : () -> bool
|
|
79
133
|
def self.mutating?: () -> bool
|
|
@@ -110,6 +164,9 @@ module Nukadoko
|
|
|
110
164
|
|
|
111
165
|
# Each step file is registered for autoload under its class name first, so a
|
|
112
166
|
# step can name another in `from` or `field` whatever order the files load in.
|
|
167
|
+
# Every other Ruby file under the features directory is cucumber-ruby glue
|
|
168
|
+
# the compat door reads (lib/nukadoko/compat.rb), loaded before the step
|
|
169
|
+
# files in cucumber-ruby's order, and a step file may register glue too.
|
|
113
170
|
# : (String) -> Array[singleton(Step)]
|
|
114
171
|
def self.load_steps: (String) -> Array[singleton(Step)]
|
|
115
172
|
end
|
|
@@ -37,6 +37,45 @@ module Nukadoko
|
|
|
37
37
|
class ContextOptionsConflictError < ArgumentError
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
# A step read `services[name]` for a name the program does not write:
|
|
41
|
+
# nil there would fail later, at a request to a URL with no host, far
|
|
42
|
+
# from the mistake. The message names the services the system has.
|
|
43
|
+
class UnknownServiceError < KeyError[untyped, untyped]
|
|
44
|
+
attr_reader service: String
|
|
45
|
+
|
|
46
|
+
# : (String, Array[String]) -> void
|
|
47
|
+
def initialize: (String, Array[String]) -> void
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# The `services` fixture: every service of the system by name, the
|
|
51
|
+
# primary among them, as Engine::Program::Address holds it. A step sends
|
|
52
|
+
# to another service at its absolute `url`, and runs that service's
|
|
53
|
+
# command line with run_command in its `root` with its `env`. The same
|
|
54
|
+
# values in every scenario of the system.
|
|
55
|
+
class Services
|
|
56
|
+
include Enumerable[[ String, untyped ]]
|
|
57
|
+
|
|
58
|
+
# : (Hash[String, untyped]) -> void
|
|
59
|
+
def initialize: (Hash[String, untyped]) -> void
|
|
60
|
+
|
|
61
|
+
# The service named `name`, a String or a Symbol; a name the program
|
|
62
|
+
# does not write raises UnknownServiceError.
|
|
63
|
+
# : (String | Symbol) -> untyped
|
|
64
|
+
def []: (String | Symbol) -> untyped
|
|
65
|
+
|
|
66
|
+
# : (String | Symbol) -> bool
|
|
67
|
+
def key?: (String | Symbol) -> bool
|
|
68
|
+
|
|
69
|
+
# : () -> Array[String]
|
|
70
|
+
def names: () -> Array[String]
|
|
71
|
+
|
|
72
|
+
# : () { ([String, untyped]) -> void } -> void
|
|
73
|
+
def each: () { ([ String, untyped ]) -> void } -> void
|
|
74
|
+
|
|
75
|
+
# : () -> Hash[String, untyped]
|
|
76
|
+
def to_h: () -> Hash[String, untyped]
|
|
77
|
+
end
|
|
78
|
+
|
|
40
79
|
module Engine
|
|
41
80
|
# : () -> String
|
|
42
81
|
def self.now_iso: () -> String
|
|
@@ -30,6 +30,8 @@ module Nukadoko
|
|
|
30
30
|
|
|
31
31
|
CLAIMS_LEAD: ::String
|
|
32
32
|
|
|
33
|
+
LATE_NOTE: ::String
|
|
34
|
+
|
|
33
35
|
CONTROL_NOTE: ::String
|
|
34
36
|
|
|
35
37
|
LIMIT_KINDS: untyped
|
|
@@ -91,7 +93,7 @@ module Nukadoko
|
|
|
91
93
|
# The line above the table under `--base`: what the run compared with,
|
|
92
94
|
# how many criteria changed, and whether the mapping changed and what
|
|
93
95
|
# in it, since an unchanged criterion over a changed mapping is what
|
|
94
|
-
# the old
|
|
96
|
+
# the old system was run for.
|
|
95
97
|
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
96
98
|
def self?.base_line: (Hash[Symbol, untyped]) -> Array[String]
|
|
97
99
|
|
|
@@ -130,6 +132,11 @@ module Nukadoko
|
|
|
130
132
|
# : (Hash[Symbol, untyped]) -> String?
|
|
131
133
|
def self?.describe_failure: (Hash[Symbol, untyped]) -> String?
|
|
132
134
|
|
|
135
|
+
# Where a pass a failure underneath made broke failed: the step and
|
|
136
|
+
# each failure there that no tag of the scenario accepts.
|
|
137
|
+
# : (Hash[Symbol, untyped]) -> String?
|
|
138
|
+
def self?.underneath_failure: (Hash[Symbol, untyped]) -> String?
|
|
139
|
+
|
|
133
140
|
# : (Array[Hash[Symbol, untyped]]?) -> Array[[untyped, Integer, String]]
|
|
134
141
|
def self?.exited_producers: (Array[Hash[Symbol, untyped]]?) -> Array[[ untyped, Integer, String ]]
|
|
135
142
|
|
|
@@ -148,6 +155,38 @@ module Nukadoko
|
|
|
148
155
|
# : (Array[Hash[Symbol, untyped]]) -> Array[Hash[Symbol, untyped]]
|
|
149
156
|
def self?.judgment_limits: (Array[Hash[Symbol, untyped]]) -> Array[Hash[Symbol, untyped]]
|
|
150
157
|
|
|
158
|
+
# How many unmeasured actions one entry names before it counts the rest.
|
|
159
|
+
UNMEASURED_SHOWN: ::Integer
|
|
160
|
+
|
|
161
|
+
# Per step: what it did that nukadoko saw and could not measure
|
|
162
|
+
# (`observed.unmeasured`), and what reached its files after its record
|
|
163
|
+
# was written. Under `--repeat` the same step with the same gap is one
|
|
164
|
+
# entry, citing its first record.
|
|
165
|
+
# : (Array[Hash[Symbol, untyped]]) -> Array[Hash[Symbol, untyped]]
|
|
166
|
+
def self?.step_limits: (Array[Hash[Symbol, untyped]]) -> Array[Hash[Symbol, untyped]]
|
|
167
|
+
|
|
168
|
+
# What of a step's failures underneath could not be seen: its cell
|
|
169
|
+
# was judged without them.
|
|
170
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
171
|
+
def self?.unjudged_failures: (Hash[Symbol, untyped]) -> Array[String]
|
|
172
|
+
|
|
173
|
+
# What reached a step's own files after its record was written: this
|
|
174
|
+
# is the one place that says those lines exist, and names their file.
|
|
175
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
176
|
+
def self?.late_items: (Hash[Symbol, untyped]) -> Array[String]
|
|
177
|
+
|
|
178
|
+
# Once per service of each system, what of the program's log and
|
|
179
|
+
# execution events no step's record holds. A system of more than one
|
|
180
|
+
# service names the service on each entry. A head step's late lines
|
|
181
|
+
# are its own entry, so the system names its late count only when it
|
|
182
|
+
# is the pattern a program that buffers its output on a pipe makes,
|
|
183
|
+
# or when the system is the base's or the old one.
|
|
184
|
+
# : (Hash[Symbol, untyped]) -> Array[Hash[Symbol, untyped]]
|
|
185
|
+
def self?.system_limits: (Hash[Symbol, untyped]) -> Array[Hash[Symbol, untyped]]
|
|
186
|
+
|
|
187
|
+
# : (Hash[Symbol, untyped], Hash[Symbol, untyped], bool) -> Array[Hash[Symbol, untyped]]
|
|
188
|
+
def self?.service_limits: (Hash[Symbol, untyped], Hash[Symbol, untyped], bool) -> Array[Hash[Symbol, untyped]]
|
|
189
|
+
|
|
151
190
|
# : (Hash[Symbol, untyped], Array[Hash[Symbol, untyped]]) -> Hash[Symbol, untyped]?
|
|
152
191
|
def self?.control_limit: (Hash[Symbol, untyped], Array[Hash[Symbol, untyped]]) -> Hash[Symbol, untyped]?
|
|
153
192
|
|
|
@@ -166,12 +205,27 @@ module Nukadoko
|
|
|
166
205
|
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
167
206
|
def self?.condition: (Hash[Symbol, untyped]) -> Array[String]
|
|
168
207
|
|
|
208
|
+
# A checkout holds code the run's commit does not name: it sits
|
|
209
|
+
# outside the repository. One line per checkout says which commit the
|
|
210
|
+
# systems ran, and, under --base, that head's systems and the base's ran
|
|
211
|
+
# the same one, since a checkout is the same directory in every tree.
|
|
212
|
+
# A dirty checkout fails nothing; the line says so, as the commit
|
|
213
|
+
# line does.
|
|
214
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
215
|
+
def self?.checkout_lines: (Hash[Symbol, untyped]) -> Array[String]
|
|
216
|
+
|
|
169
217
|
# The claim as ClaimLine writes it, then where its values were
|
|
170
218
|
# measured: a value no recorded channel holds is what a constant in
|
|
171
219
|
# step code looks like, so the line says `measured: none`.
|
|
172
220
|
# : (Hash[Symbol, untyped], String?) -> String
|
|
173
221
|
def self?.claim_line: (Hash[Symbol, untyped], String?) -> String
|
|
174
222
|
|
|
223
|
+
# A claim on a count of execution events the system's stop judged
|
|
224
|
+
# otherwise was judged on lines still on their way: its line says what
|
|
225
|
+
# the whole count came to, since its outcome proves nothing.
|
|
226
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
227
|
+
def self?.after_system_stop_text: (Hash[Symbol, untyped]) -> String
|
|
228
|
+
|
|
175
229
|
# : (Hash[Symbol, untyped], String?) -> String
|
|
176
230
|
def self?.measured_text: (Hash[Symbol, untyped], String?) -> String
|
|
177
231
|
|
|
@@ -181,6 +235,206 @@ module Nukadoko
|
|
|
181
235
|
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
182
236
|
def self?.claims: (Hash[Symbol, untyped]) -> Array[String]
|
|
183
237
|
|
|
238
|
+
FLAG_VERDICTS: untyped
|
|
239
|
+
|
|
240
|
+
# How many criteria one pair of sides lists before it counts the rest.
|
|
241
|
+
PATHS_SHOWN: ::Integer
|
|
242
|
+
|
|
243
|
+
# Each kind of a path in words, one and many, in PATH_KINDS order.
|
|
244
|
+
PATH_KIND_WORDS: untyped
|
|
245
|
+
|
|
246
|
+
# A criterion's results, from the one that says most to the one that
|
|
247
|
+
# says least, with their words in a count line.
|
|
248
|
+
PATH_RESULTS: untyped
|
|
249
|
+
|
|
250
|
+
# Against the base, the groups a listed criterion falls in, in the
|
|
251
|
+
# order they are listed: what nothing in the feature files accounts
|
|
252
|
+
# for first, since a refactor must have none and a reader is sent
|
|
253
|
+
# there; then what a person approves new sentences for; then what may
|
|
254
|
+
# still read the same.
|
|
255
|
+
BASE_GROUPS: untyped
|
|
256
|
+
|
|
257
|
+
BASE_GROUP_UNDECLARED: ::String
|
|
258
|
+
|
|
259
|
+
# The words of a row's result, as the intent's readers use them.
|
|
260
|
+
INTENT_RESULTS: untyped
|
|
261
|
+
|
|
262
|
+
# : (untyped) -> String
|
|
263
|
+
def self?.program_code: (untyped) -> String
|
|
264
|
+
|
|
265
|
+
# : (String) -> String
|
|
266
|
+
def self?.kind_words: (String) -> String
|
|
267
|
+
|
|
268
|
+
# A difference's key, as events/path.rb reads one.
|
|
269
|
+
# : (Hash[Symbol, untyped]) -> Hash[String, untyped]
|
|
270
|
+
def self?.difference_key: (Hash[Symbol, untyped]) -> Hash[String, untyped]
|
|
271
|
+
|
|
272
|
+
# : (Hash[String, untyped], String) -> String
|
|
273
|
+
def self?.own_field_text: (Hash[String, untyped], String) -> String
|
|
274
|
+
|
|
275
|
+
# What one entry of a path is, the program's own words in code spans.
|
|
276
|
+
# : (Hash[String, untyped]) -> String
|
|
277
|
+
def self?.path_entry_text: (Hash[String, untyped]) -> String
|
|
278
|
+
|
|
279
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
280
|
+
def self?.range_words: (Hash[Symbol, untyped]) -> String
|
|
281
|
+
|
|
282
|
+
# A flag compares as seen or not, so its range reads as whether the
|
|
283
|
+
# program evaluated it.
|
|
284
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
285
|
+
def self?.seen_words: (Hash[Symbol, untyped]) -> String
|
|
286
|
+
|
|
287
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
288
|
+
def self?.difference_text: (Hash[Symbol, untyped]) -> String
|
|
289
|
+
|
|
290
|
+
# Against the base, the intent row that declares a difference.
|
|
291
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
292
|
+
def self?.intent_text: (Hash[Symbol, untyped]) -> String
|
|
293
|
+
|
|
294
|
+
# A writer's own value that changed reads as one difference: the
|
|
295
|
+
# fields that stayed, then the one that changed, old then new, when
|
|
296
|
+
# exactly one entry went, one came, as many as went, and they differ
|
|
297
|
+
# in one field.
|
|
298
|
+
# : (Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
299
|
+
def self?.own_texts: (Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
300
|
+
|
|
301
|
+
# A route whose status changed, and a flag whose side did, read as one
|
|
302
|
+
# difference, what it is then the old value and the new, when every
|
|
303
|
+
# count on it is exact and as many went as came.
|
|
304
|
+
# : (Array[Hash[Symbol, untyped]], ^(Hash[Symbol, untyped]) -> String, ^(Hash[Symbol, untyped]) -> String, ^(Hash[Symbol, untyped]) -> String) -> Array[String]
|
|
305
|
+
def self?.switch_texts: (Array[Hash[Symbol, untyped]], ^(Hash[Symbol, untyped]) -> String, ^(Hash[Symbol, untyped]) -> String, ^(Hash[Symbol, untyped]) -> String) -> Array[String]
|
|
306
|
+
|
|
307
|
+
# : (Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
308
|
+
def self?.kind_texts: (Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
309
|
+
|
|
310
|
+
# : (String, String) -> Integer
|
|
311
|
+
def self?.by_kind: (String, String) -> Integer
|
|
312
|
+
|
|
313
|
+
# The differences of one step by kind, in rank order.
|
|
314
|
+
# : (Array[Hash[Symbol, untyped]]) -> String
|
|
315
|
+
def self?.differences_text: (Array[Hash[Symbol, untyped]]) -> String
|
|
316
|
+
|
|
317
|
+
# : (Array[Hash[Symbol, untyped]]) -> String
|
|
318
|
+
def self?.gap_list: (Array[Hash[Symbol, untyped]]) -> String
|
|
319
|
+
|
|
320
|
+
# Who leaves an open difference open: the sides that are not whole,
|
|
321
|
+
# or lines on a whole side that may be any line.
|
|
322
|
+
# : (Hash[Symbol, untyped], ^(Symbol) -> String) -> String
|
|
323
|
+
def self?.open_why: (Hash[Symbol, untyped], ^(Symbol) -> String) -> String
|
|
324
|
+
|
|
325
|
+
# : (Array[Integer?]) -> String
|
|
326
|
+
def self?.line_words: (Array[Integer?]) -> String
|
|
327
|
+
|
|
328
|
+
# How a comparison names its sides, and which kinds it compares.
|
|
329
|
+
# : (Hash[Symbol, untyped], Hash[String, Hash[Symbol, untyped]]) -> Hash[Symbol, untyped]
|
|
330
|
+
def self?.path_reading: (Hash[Symbol, untyped], Hash[String, Hash[Symbol, untyped]]) -> Hash[Symbol, untyped]
|
|
331
|
+
|
|
332
|
+
# What the steps that ran on one side only did there, counted by kind.
|
|
333
|
+
# : (Hash[Symbol, untyped], Hash[Symbol, untyped], Array[Hash[Symbol, untyped]], Symbol) -> Hash[String, Integer]
|
|
334
|
+
def self?.one_side_kinds: (Hash[Symbol, untyped], Hash[Symbol, untyped], Array[Hash[Symbol, untyped]], Symbol) -> Hash[String, Integer]
|
|
335
|
+
|
|
336
|
+
# A criterion's step lines, of the differences `marked` picks out:
|
|
337
|
+
# those on a marked table, or every other.
|
|
338
|
+
# : (Hash[Symbol, untyped], Hash[Symbol, untyped], bool) -> Array[String]
|
|
339
|
+
def self?.step_lines: (Hash[Symbol, untyped], Hash[Symbol, untyped], bool) -> Array[String]
|
|
340
|
+
|
|
341
|
+
# : (Hash[Symbol, untyped], Hash[Symbol, untyped]) -> Array[String]
|
|
342
|
+
def self?.criterion_lines: (Hash[Symbol, untyped], Hash[Symbol, untyped]) -> Array[String]
|
|
343
|
+
|
|
344
|
+
# A criterion whose open counts read the same on both sides, in one
|
|
345
|
+
# line: the gap words that leave them open, which both sides share.
|
|
346
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
347
|
+
def self?.same_so_far_text: (Hash[Symbol, untyped]) -> String
|
|
348
|
+
|
|
349
|
+
# A criterion ranks by the highest kind among its decided differences
|
|
350
|
+
# and what its one-side steps did, so what persists outside the
|
|
351
|
+
# process comes first.
|
|
352
|
+
# : (Hash[Symbol, untyped], Hash[Symbol, untyped]) -> Integer
|
|
353
|
+
def self?.path_rank: (Hash[Symbol, untyped], Hash[Symbol, untyped]) -> Integer
|
|
354
|
+
|
|
355
|
+
# : (untyped) -> String
|
|
356
|
+
def self?.condition_value: (untyped) -> String
|
|
357
|
+
|
|
358
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
359
|
+
def self?.path_heading: (Hash[Symbol, untyped]) -> String
|
|
360
|
+
|
|
361
|
+
# : (String) -> Integer
|
|
362
|
+
def self?.result_rank: (String) -> Integer
|
|
363
|
+
|
|
364
|
+
# : (Hash[Symbol, untyped]) -> Integer
|
|
365
|
+
def self?.base_group: (Hash[Symbol, untyped]) -> Integer
|
|
366
|
+
|
|
367
|
+
# : (Array[String]) -> String
|
|
368
|
+
def self?.path_results_said: (Array[String]) -> String
|
|
369
|
+
|
|
370
|
+
# Against the base, what the unchanged criteria came to, each once,
|
|
371
|
+
# as what it came to where it says most.
|
|
372
|
+
# : (Array[Hash[Symbol, untyped]], Hash[String, untyped]) -> Array[String]
|
|
373
|
+
def self?.unchanged_line: (Array[Hash[Symbol, untyped]], Hash[String, untyped]) -> Array[String]
|
|
374
|
+
|
|
375
|
+
# The comparisons under one heading: a pair of environments alone, or
|
|
376
|
+
# every environment's base pair. Each criterion counts once, as what
|
|
377
|
+
# it came to where it says most, and one listed with the same lines in
|
|
378
|
+
# several base pairs is listed once, naming their environments.
|
|
379
|
+
# : (Hash[Symbol, untyped], Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
380
|
+
def self?.path_section: (Hash[Symbol, untyped], Array[Hash[Symbol, untyped]]) -> Array[String]
|
|
381
|
+
|
|
382
|
+
# What a row declares, its cells as written.
|
|
383
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
384
|
+
def self?.intent_row_text: (Hash[Symbol, untyped]) -> String
|
|
385
|
+
|
|
386
|
+
# run.json's `intent`, for the person who approves the change: when it
|
|
387
|
+
# was declared and whether it moved since, and what each row came to.
|
|
388
|
+
# Each criterion with a difference no row declares is listed under
|
|
389
|
+
# "Changed paths", so this section counts them and does not repeat
|
|
390
|
+
# them.
|
|
391
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
392
|
+
def self?.intent: (Hash[Symbol, untyped]) -> Array[String]
|
|
393
|
+
|
|
394
|
+
# run.json's `paths`, for the person who decides whether a change may
|
|
395
|
+
# be turned on for everyone: per pair of sides, each criterion whose
|
|
396
|
+
# program did something else on one side than on the other, step by
|
|
397
|
+
# step.
|
|
398
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
399
|
+
def self?.paths: (Hash[Symbol, untyped]) -> Array[String]
|
|
400
|
+
|
|
401
|
+
# At most this many routes are named in one line of "Routes"; the
|
|
402
|
+
# rest are counted, and run.json's `routes` names every one.
|
|
403
|
+
ROUTES_NAMED: ::Integer
|
|
404
|
+
|
|
405
|
+
# A flag's name, side, and gate are the program's text: a line break
|
|
406
|
+
# in one would end the list item, so control characters are escaped.
|
|
407
|
+
# : (String) -> String
|
|
408
|
+
def self?.program_word: (String) -> String
|
|
409
|
+
|
|
410
|
+
# : (Hash[Symbol, untyped]) -> Array[Hash[Symbol, untyped]]
|
|
411
|
+
def self?.head_systems: (Hash[Symbol, untyped]) -> Array[Hash[Symbol, untyped]]
|
|
412
|
+
|
|
413
|
+
# The lists the primary service of `system` read: the steps' requests
|
|
414
|
+
# and flags are read against them.
|
|
415
|
+
# : (Hash[Symbol, untyped]) -> Hash[Symbol, untyped]?
|
|
416
|
+
def self?.primary_lists: (Hash[Symbol, untyped]) -> Hash[Symbol, untyped]?
|
|
417
|
+
|
|
418
|
+
# One line per flag and side of run.json's `flags`: its counts, and
|
|
419
|
+
# the gates its lines named, or that no criterion evaluated a side the
|
|
420
|
+
# flags list declares. A system whose flags list was not read is named,
|
|
421
|
+
# so a missing side is never read as one the program does not have.
|
|
422
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
423
|
+
def self?.flags: (Hash[Symbol, untyped]) -> Array[String]
|
|
424
|
+
|
|
425
|
+
# : (Hash[Symbol, untyped]) -> String
|
|
426
|
+
def self?.route_name: (Hash[Symbol, untyped]) -> String
|
|
427
|
+
|
|
428
|
+
# : (Array[String]) -> String
|
|
429
|
+
def self?.named_list: (Array[String]) -> String
|
|
430
|
+
|
|
431
|
+
# The places of run.json's `routes` no step reached: the listed routes
|
|
432
|
+
# no head step requested, split from those whose handler a request
|
|
433
|
+
# reached through another route, then the requests the lists do not
|
|
434
|
+
# account for. A system whose list was not read is named.
|
|
435
|
+
# : (Hash[Symbol, untyped]) -> Array[String]
|
|
436
|
+
def self?.routes: (Hash[Symbol, untyped]) -> Array[String]
|
|
437
|
+
|
|
184
438
|
# : (Hash[Symbol, untyped]) -> String
|
|
185
439
|
def self?.where_of: (Hash[Symbol, untyped]) -> String
|
|
186
440
|
|
|
@@ -194,7 +448,7 @@ module Nukadoko
|
|
|
194
448
|
def self?.rerun: (Hash[Symbol, untyped]) -> Array[String]
|
|
195
449
|
|
|
196
450
|
# A walk is a run that paused after each step for an answer: its
|
|
197
|
-
# verdicts were measured, but between steps the
|
|
451
|
+
# verdicts were measured, but between steps the system and the browser
|
|
198
452
|
# were open to anything, which no record covers. The longest pause
|
|
199
453
|
# says how long that was.
|
|
200
454
|
# : (Hash[Symbol, untyped]) -> String
|
|
@@ -19,8 +19,9 @@ module Nukadoko
|
|
|
19
19
|
def self.role: (Array[String], Hash[String, untyped]) -> String
|
|
20
20
|
|
|
21
21
|
# What a cell's executions came to. An execution is `[:pass]`,
|
|
22
|
-
# `[:fail, line, claim]`, `[:broke, line]
|
|
23
|
-
#
|
|
22
|
+
# `[:fail, line, claim]`, `[:broke, line]` (with a reason when one is
|
|
23
|
+
# known, such as a claim judged before its events had arrived), or
|
|
24
|
+
# `[:stopped, line]` for a walk a person stopped after that line.
|
|
24
25
|
# : (Array[Array[untyped]]) -> Hash[Symbol, untyped]
|
|
25
26
|
def self.cell: (Array[Array[untyped]]) -> Hash[Symbol, untyped]
|
|
26
27
|
|