test_bench-bootstrap 3.0.0.0.pre.1 → 3.0.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/lib/test_bench/bootstrap.rb +373 -0
- metadata +16 -353
- data/executables/bench-bootstrap +0 -7
- data/lib/test_bench_bootstrap/controls.rb +0 -1
- data/lib/test_bench_bootstrap/test_bench_bootstrap.rb +0 -7
- data/lib/test_bench_bootstrap.rb +0 -4
- data/upstream-lib/test_bench_bootstrap/import_constants/controls/namespace.rb +0 -84
- data/upstream-lib/test_bench_bootstrap/import_constants/controls.rb +0 -1
- data/upstream-lib/test_bench_bootstrap/import_constants/import_constants.rb +0 -46
- data/upstream-lib/test_bench_bootstrap/import_constants/macro.rb +0 -10
- data/upstream-lib/test_bench_bootstrap/import_constants.rb +0 -2
- data/upstream-lib/test_bench_bootstrap/test_bench/controls/telemetry_sink.rb +0 -7
- data/upstream-lib/test_bench_bootstrap/test_bench/controls.rb +0 -3
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/path.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/random.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/run.rb +0 -12
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls/standard_input.rb +0 -31
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/controls.rb +0 -8
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/defaults.rb +0 -15
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/executable.rb +0 -61
- data/upstream-lib/test_bench_bootstrap/test_bench/executable/parse_arguments.rb +0 -271
- data/upstream-lib/test_bench_bootstrap/test_bench/executable.rb +0 -7
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/build.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/comment_style.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/exception.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/fixture.rb +0 -69
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/message.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/output.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/path.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/session.rb +0 -21
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/status.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/text.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls/title.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/controls.rb +0 -14
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/evaluate.rb +0 -37
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture/fixture.rb +0 -213
- data/upstream-lib/test_bench_bootstrap/test_bench/fixture.rb +0 -7
- data/upstream-lib/test_bench_bootstrap/test_bench/output/comment_style.rb +0 -63
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/comment_style.rb +0 -23
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/event.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/aborted.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/commented.rb +0 -23
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/context_finished.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/context_started.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/detailed.rb +0 -23
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/failed.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_executed.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_not_found.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/file_queued.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/skipped.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/test_finished.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/events/test_started.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/random.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/session.rb +0 -19
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/status.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/style.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls/text.rb +0 -31
- data/upstream-lib/test_bench_bootstrap/test_bench/output/controls.rb +0 -26
- data/upstream-lib/test_bench_bootstrap/test_bench/output/detail_policy.rb +0 -46
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device/null.rb +0 -21
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device/substitute.rb +0 -46
- data/upstream-lib/test_bench_bootstrap/test_bench/output/device.rb +0 -75
- data/upstream-lib/test_bench_bootstrap/test_bench/output/get.rb +0 -32
- data/upstream-lib/test_bench_bootstrap/test_bench/output/level.rb +0 -53
- data/upstream-lib/test_bench_bootstrap/test_bench/output/output.rb +0 -572
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer/style.rb +0 -54
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer/substitute.rb +0 -27
- data/upstream-lib/test_bench_bootstrap/test_bench/output/writer.rb +0 -119
- data/upstream-lib/test_bench_bootstrap/test_bench/output.rb +0 -20
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls/seed.rb +0 -25
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls/sequence.rb +0 -70
- data/upstream-lib/test_bench_bootstrap/test_bench/random/controls.rb +0 -2
- data/upstream-lib/test_bench_bootstrap/test_bench/random/defaults.rb +0 -13
- data/upstream-lib/test_bench_bootstrap/test_bench/random/generator/substitute.rb +0 -23
- data/upstream-lib/test_bench_bootstrap/test_bench/random/generator.rb +0 -64
- data/upstream-lib/test_bench_bootstrap/test_bench/random/iterator.rb +0 -54
- data/upstream-lib/test_bench_bootstrap/test_bench/random/random.rb +0 -27
- data/upstream-lib/test_bench_bootstrap/test_bench/random.rb +0 -8
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/events.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/message.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/path.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/random.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/session.rb +0 -16
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/status.rb +0 -44
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file/info.rb +0 -108
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file/totals.rb +0 -38
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/file.rb +0 -44
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary/run.rb +0 -53
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/summary.rb +0 -45
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/telemetry.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls/time.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/run/controls.rb +0 -20
- data/upstream-lib/test_bench_bootstrap/test_bench/run/run.rb +0 -146
- data/upstream-lib/test_bench_bootstrap/test_bench/run/select_files/substitute.rb +0 -45
- data/upstream-lib/test_bench_bootstrap/test_bench/run/select_files.rb +0 -70
- data/upstream-lib/test_bench_bootstrap/test_bench/run/substitute.rb +0 -42
- data/upstream-lib/test_bench_bootstrap/test_bench/run/summary/substitute.rb +0 -19
- data/upstream-lib/test_bench_bootstrap/test_bench/run/summary.rb +0 -477
- data/upstream-lib/test_bench_bootstrap/test_bench/run.rb +0 -10
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/backtrace/location.rb +0 -48
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/backtrace.rb +0 -83
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/comment_disposition.rb +0 -17
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/event.rb +0 -35
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/aborted.rb +0 -51
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/commented.rb +0 -62
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_finished.rb +0 -112
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_started.rb +0 -51
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/detailed.rb +0 -62
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/failed.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_executed.rb +0 -101
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_not_found.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/file_queued.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/skipped.rb +0 -51
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/test_finished.rb +0 -92
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/test_started.rb +0 -51
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events.rb +0 -35
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception/message.rb +0 -23
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception/raise.rb +0 -52
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/exception.rb +0 -81
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/message.rb +0 -43
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/metadata.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/apex_directory.rb +0 -76
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/file/create.rb +0 -113
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path/file.rb +0 -42
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/path.rb +0 -87
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/random.rb +0 -9
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/result.rb +0 -17
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/sequence.rb +0 -13
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/status.rb +0 -92
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/telemetry.rb +0 -15
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/telemetry_sink.rb +0 -37
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/text.rb +0 -33
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/title.rb +0 -41
- data/upstream-lib/test_bench_bootstrap/test_bench/session/controls.rb +0 -43
- data/upstream-lib/test_bench_bootstrap/test_bench/session/defaults.rb +0 -17
- data/upstream-lib/test_bench_bootstrap/test_bench/session/events.rb +0 -24
- data/upstream-lib/test_bench_bootstrap/test_bench/session/exception/format_backtrace/substitute.rb +0 -34
- data/upstream-lib/test_bench_bootstrap/test_bench/session/exception/format_backtrace.rb +0 -114
- data/upstream-lib/test_bench_bootstrap/test_bench/session/isolate/substitute.rb +0 -45
- data/upstream-lib/test_bench_bootstrap/test_bench/session/isolate.rb +0 -159
- data/upstream-lib/test_bench_bootstrap/test_bench/session/result.rb +0 -44
- data/upstream-lib/test_bench_bootstrap/test_bench/session/session.rb +0 -236
- data/upstream-lib/test_bench_bootstrap/test_bench/session/status.rb +0 -60
- data/upstream-lib/test_bench_bootstrap/test_bench/session/substitute/sink.rb +0 -99
- data/upstream-lib/test_bench_bootstrap/test_bench/session/substitute.rb +0 -154
- data/upstream-lib/test_bench_bootstrap/test_bench/session/trace.rb +0 -53
- data/upstream-lib/test_bench_bootstrap/test_bench/session.rb +0 -22
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event/metadata.rb +0 -72
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event.rb +0 -156
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/event_data.rb +0 -113
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/handler.rb +0 -83
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/path/file.rb +0 -39
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/process_id.rb +0 -25
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/random.rb +0 -11
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/sink.rb +0 -35
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls/time.rb +0 -104
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/controls.rb +0 -16
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event.rb +0 -130
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event_data/serialization.rb +0 -85
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/event_data.rb +0 -15
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/file.rb +0 -39
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/handler/event_registry.rb +0 -44
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink/handler.rb +0 -128
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/sink.rb +0 -13
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/substitute/sink.rb +0 -71
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/substitute.rb +0 -43
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry/telemetry.rb +0 -92
- data/upstream-lib/test_bench_bootstrap/test_bench/telemetry.rb +0 -18
- data/upstream-lib/test_bench_bootstrap/test_bench/test_bench.rb +0 -72
- data/upstream-lib/test_bench_bootstrap/test_bench.rb +0 -4
@@ -1,62 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module Commented
|
7
|
-
def self.example(text: nil, disposition: nil)
|
8
|
-
text ||= self.text
|
9
|
-
|
10
|
-
if disposition == :none
|
11
|
-
disposition = nil
|
12
|
-
else
|
13
|
-
disposition ||= self.disposition
|
14
|
-
end
|
15
|
-
|
16
|
-
commented = Session::Events::Commented.new
|
17
|
-
|
18
|
-
commented.text = text
|
19
|
-
commented.disposition = disposition
|
20
|
-
|
21
|
-
commented.metadata = Metadata.example
|
22
|
-
|
23
|
-
commented
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.text
|
27
|
-
Text::Comment.example
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.disposition
|
31
|
-
CommentDisposition.example
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.other_example
|
35
|
-
Other.example
|
36
|
-
end
|
37
|
-
|
38
|
-
module Other
|
39
|
-
def self.example
|
40
|
-
Commented.example(text:, disposition:)
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.text
|
44
|
-
Text::Comment.other_example
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.disposition
|
48
|
-
CommentDisposition.other_example
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
module NoDisposition
|
53
|
-
def self.example
|
54
|
-
Commented.example(disposition: :none)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_finished.rb
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module ContextFinished
|
7
|
-
def self.example(result: nil, title: nil)
|
8
|
-
result ||= self.result
|
9
|
-
|
10
|
-
if title == :none
|
11
|
-
title = nil
|
12
|
-
else
|
13
|
-
title ||= self.title
|
14
|
-
end
|
15
|
-
|
16
|
-
context_finished = Session::Events::ContextFinished.new
|
17
|
-
|
18
|
-
context_finished.title = title
|
19
|
-
context_finished.result = result
|
20
|
-
|
21
|
-
context_finished.metadata = Metadata.example
|
22
|
-
|
23
|
-
context_finished
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.title
|
27
|
-
Title::Context.example
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.result
|
31
|
-
Result.example
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.other_example
|
35
|
-
Other.example
|
36
|
-
end
|
37
|
-
|
38
|
-
module Other
|
39
|
-
def self.example
|
40
|
-
ContextFinished.example(result:, title:)
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.result
|
44
|
-
Result.other_example
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.title
|
48
|
-
Title::Context.other_example
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
module NoTitle
|
53
|
-
def self.example
|
54
|
-
ContextFinished.example(title: :none)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
module Passed
|
59
|
-
def self.example
|
60
|
-
ContextFinished.example(result:)
|
61
|
-
end
|
62
|
-
|
63
|
-
def self.result
|
64
|
-
Session::Result.passed
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
module Failed
|
69
|
-
def self.example
|
70
|
-
ContextFinished.example(result:)
|
71
|
-
end
|
72
|
-
|
73
|
-
def self.result
|
74
|
-
Session::Result.failed
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
module Inert
|
79
|
-
def self.example
|
80
|
-
ContextFinished.example(result:)
|
81
|
-
end
|
82
|
-
|
83
|
-
def self.result
|
84
|
-
Session::Result.none
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
module Aborted
|
89
|
-
def self.example
|
90
|
-
ContextFinished.example(result:)
|
91
|
-
end
|
92
|
-
|
93
|
-
def self.result
|
94
|
-
Session::Result.aborted
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
module Incomplete
|
99
|
-
def self.example
|
100
|
-
ContextFinished.example(result:)
|
101
|
-
end
|
102
|
-
|
103
|
-
def self.result
|
104
|
-
Session::Result.incomplete
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
data/upstream-lib/test_bench_bootstrap/test_bench/session/controls/events/context_started.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module ContextStarted
|
7
|
-
def self.example(title: nil)
|
8
|
-
if title == :none
|
9
|
-
title = nil
|
10
|
-
else
|
11
|
-
title ||= self.title
|
12
|
-
end
|
13
|
-
|
14
|
-
context_started = Session::Events::ContextStarted.new
|
15
|
-
|
16
|
-
context_started.title = title
|
17
|
-
|
18
|
-
context_started.metadata = Metadata.example
|
19
|
-
|
20
|
-
context_started
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.title
|
24
|
-
Title::Context.example
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.other_example
|
28
|
-
Other.example
|
29
|
-
end
|
30
|
-
|
31
|
-
module Other
|
32
|
-
def self.example
|
33
|
-
ContextStarted.example(title:)
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.title
|
37
|
-
Title::Context.other_example
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
module NoTitle
|
42
|
-
def self.example
|
43
|
-
ContextStarted.example(title: :none)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module Detailed
|
7
|
-
def self.example(text: nil, disposition: nil)
|
8
|
-
text ||= self.text
|
9
|
-
|
10
|
-
if disposition == :none
|
11
|
-
disposition = nil
|
12
|
-
else
|
13
|
-
disposition ||= self.disposition
|
14
|
-
end
|
15
|
-
|
16
|
-
detailed = Session::Events::Detailed.new
|
17
|
-
|
18
|
-
detailed.text = text
|
19
|
-
detailed.disposition = disposition
|
20
|
-
|
21
|
-
detailed.metadata = Metadata.example
|
22
|
-
|
23
|
-
detailed
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.text
|
27
|
-
Text::Detail.example
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.disposition
|
31
|
-
CommentDisposition.example
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.other_example
|
35
|
-
Other.example
|
36
|
-
end
|
37
|
-
|
38
|
-
module NoDisposition
|
39
|
-
def self.example
|
40
|
-
Detailed.example(disposition: :none)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
module Other
|
45
|
-
def self.example
|
46
|
-
Detailed.example(text:, disposition:)
|
47
|
-
end
|
48
|
-
|
49
|
-
def self.text
|
50
|
-
Text::Detail.other_example
|
51
|
-
end
|
52
|
-
|
53
|
-
def self.disposition
|
54
|
-
CommentDisposition.other_example
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module Failed
|
7
|
-
def self.example(message: nil)
|
8
|
-
message ||= self.message
|
9
|
-
|
10
|
-
failed = Session::Events::Failed.new
|
11
|
-
|
12
|
-
failed.message = message
|
13
|
-
|
14
|
-
failed.metadata = Metadata.example
|
15
|
-
|
16
|
-
failed
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.message
|
20
|
-
Message::Failure.example
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.other_example
|
24
|
-
Other.example
|
25
|
-
end
|
26
|
-
|
27
|
-
module Other
|
28
|
-
def self.example
|
29
|
-
Failed.example(message:)
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.message
|
33
|
-
Message::Failure.other_example
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,101 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module FileExecuted
|
7
|
-
def self.example(result: nil, file: nil)
|
8
|
-
result ||= self.result
|
9
|
-
file ||= self.file
|
10
|
-
|
11
|
-
file_executed = Session::Events::FileExecuted.new
|
12
|
-
|
13
|
-
file_executed.file = file
|
14
|
-
file_executed.result = result
|
15
|
-
|
16
|
-
file_executed.metadata = Metadata.example
|
17
|
-
|
18
|
-
file_executed
|
19
|
-
end
|
20
|
-
|
21
|
-
def self.file
|
22
|
-
Path::File.example
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.result
|
26
|
-
Result.example
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.other_example
|
30
|
-
Other.example
|
31
|
-
end
|
32
|
-
|
33
|
-
module Other
|
34
|
-
def self.example
|
35
|
-
FileExecuted.example(result:, file:)
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.result
|
39
|
-
Result.other_example
|
40
|
-
end
|
41
|
-
|
42
|
-
def self.file
|
43
|
-
Path::File.other_example
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
module Passed
|
48
|
-
def self.example
|
49
|
-
FileExecuted.example(result:)
|
50
|
-
end
|
51
|
-
|
52
|
-
def self.result
|
53
|
-
Session::Result.passed
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
module Failed
|
58
|
-
def self.example
|
59
|
-
FileExecuted.example(result:)
|
60
|
-
end
|
61
|
-
|
62
|
-
def self.result
|
63
|
-
Session::Result.failed
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
module Inert
|
68
|
-
def self.example
|
69
|
-
FileExecuted.example(result:)
|
70
|
-
end
|
71
|
-
|
72
|
-
def self.result
|
73
|
-
Session::Result.none
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
module Aborted
|
78
|
-
def self.example
|
79
|
-
FileExecuted.example(result:)
|
80
|
-
end
|
81
|
-
|
82
|
-
def self.result
|
83
|
-
Session::Result.aborted
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
module Incomplete
|
88
|
-
def self.example
|
89
|
-
FileExecuted.example(result:)
|
90
|
-
end
|
91
|
-
|
92
|
-
def self.result
|
93
|
-
Session::Result.incomplete
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module FileNotFound
|
7
|
-
def self.example(file: nil)
|
8
|
-
file ||= self.file
|
9
|
-
|
10
|
-
file_not_found = Session::Events::FileNotFound.new
|
11
|
-
|
12
|
-
file_not_found.file = file
|
13
|
-
|
14
|
-
file_not_found.metadata = Metadata.example
|
15
|
-
|
16
|
-
file_not_found
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.file
|
20
|
-
Path::File.example
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.other_example
|
24
|
-
Other.example
|
25
|
-
end
|
26
|
-
|
27
|
-
module Other
|
28
|
-
def self.example
|
29
|
-
FileNotFound.example(file:)
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.file
|
33
|
-
Path::File.other_example
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module FileQueued
|
7
|
-
def self.example(file: nil)
|
8
|
-
file ||= self.file
|
9
|
-
|
10
|
-
file_queued = Session::Events::FileQueued.new
|
11
|
-
|
12
|
-
file_queued.file = file
|
13
|
-
|
14
|
-
file_queued.metadata = Metadata.example
|
15
|
-
|
16
|
-
file_queued
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.file
|
20
|
-
Path::File.example
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.other_example
|
24
|
-
Other.example
|
25
|
-
end
|
26
|
-
|
27
|
-
module Other
|
28
|
-
def self.example
|
29
|
-
FileQueued.example(file:)
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.file
|
33
|
-
Path::File.other_example
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module Skipped
|
7
|
-
def self.example(message: nil)
|
8
|
-
if message == :none
|
9
|
-
message = nil
|
10
|
-
else
|
11
|
-
message ||= self.message
|
12
|
-
end
|
13
|
-
|
14
|
-
skipped = Session::Events::Skipped.new
|
15
|
-
|
16
|
-
skipped.message = message
|
17
|
-
|
18
|
-
skipped.metadata = Metadata.example
|
19
|
-
|
20
|
-
skipped
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.message
|
24
|
-
Message::Skip.example
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.other_example
|
28
|
-
Other.example
|
29
|
-
end
|
30
|
-
|
31
|
-
module Other
|
32
|
-
def self.example
|
33
|
-
Skipped.example(message:)
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.message
|
37
|
-
Message::Skip.other_example
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
module NoMessage
|
42
|
-
def self.example
|
43
|
-
Skipped.example(message: :none)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,92 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module TestFinished
|
7
|
-
def self.example(result: nil, title: nil)
|
8
|
-
result ||= self.result
|
9
|
-
|
10
|
-
if title == :none
|
11
|
-
title = nil
|
12
|
-
else
|
13
|
-
title ||= self.title
|
14
|
-
end
|
15
|
-
|
16
|
-
test_finished = Session::Events::TestFinished.new
|
17
|
-
|
18
|
-
test_finished.title = title
|
19
|
-
test_finished.result = result
|
20
|
-
|
21
|
-
test_finished.metadata = Metadata.example
|
22
|
-
|
23
|
-
test_finished
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.title
|
27
|
-
Title::Test.example
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.result
|
31
|
-
Result.example
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.other_example
|
35
|
-
Other.example
|
36
|
-
end
|
37
|
-
|
38
|
-
module Other
|
39
|
-
def self.example
|
40
|
-
TestFinished.example(result:, title:)
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.result
|
44
|
-
Result.other_example
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.title
|
48
|
-
Title::Test.other_example
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
module NoTitle
|
53
|
-
def self.example
|
54
|
-
TestFinished.example(title: :none)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
module Passed
|
59
|
-
def self.example
|
60
|
-
TestFinished.example(result:)
|
61
|
-
end
|
62
|
-
|
63
|
-
def self.result
|
64
|
-
Session::Result.passed
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
module Failed
|
69
|
-
def self.example
|
70
|
-
TestFinished.example(result:)
|
71
|
-
end
|
72
|
-
|
73
|
-
def self.result
|
74
|
-
Session::Result.failed
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
module Aborted
|
79
|
-
def self.example
|
80
|
-
TestFinished.example(result:)
|
81
|
-
end
|
82
|
-
|
83
|
-
def self.result
|
84
|
-
Session::Result.aborted
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
module TestBenchBootstrap
|
2
|
-
module TestBench
|
3
|
-
class Session
|
4
|
-
module Controls
|
5
|
-
module Events
|
6
|
-
module TestStarted
|
7
|
-
def self.example(title: nil)
|
8
|
-
if title == :none
|
9
|
-
title = nil
|
10
|
-
else
|
11
|
-
title ||= self.title
|
12
|
-
end
|
13
|
-
|
14
|
-
test_started = Session::Events::TestStarted.new
|
15
|
-
|
16
|
-
test_started.title = title
|
17
|
-
|
18
|
-
test_started.metadata = Metadata.example
|
19
|
-
|
20
|
-
test_started
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.title
|
24
|
-
Title::Test.example
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.other_example
|
28
|
-
Other.example
|
29
|
-
end
|
30
|
-
|
31
|
-
module Other
|
32
|
-
def self.example
|
33
|
-
TestStarted.example(title:)
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.title
|
37
|
-
Title::Test.other_example
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
module NoTitle
|
42
|
-
def self.example
|
43
|
-
TestStarted.example(title: :none)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|