testdata 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/testdata.rb +10 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf7b1c61241032094b96f7dd7b35451a0ea5d6adbd8a82301dc7205a15279ae
|
4
|
+
data.tar.gz: 9dd7d90fde6a9b3287eeaf52d142300feeb6dff1c650221fabed4129f92b0ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b075f26248e733a201a4f30f0812b54540c5233625039dd4a8e376d20b0968da2758b63d686c7574e1eb53d815a19bad9504734a3e38ce447cf0f8658de04d8b
|
7
|
+
data.tar.gz: 756309f4520e95053f0dd45ab1b6e659682a20435768c21a225f5382328be1b8787bc1ac5a83f638646c3246fe7d4274ef219be6d73555436a395d04ec081528
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/testdata.rb
CHANGED
@@ -55,6 +55,15 @@ module Testdata
|
|
55
55
|
|
56
56
|
def run(raw_x=nil, debug2=nil)
|
57
57
|
|
58
|
+
# verify the document has unique path numbers
|
59
|
+
|
60
|
+
a = @doc.root.xpath('records/test/summary/path/text()')
|
61
|
+
duplicates = a.select{ |e| a.count(e) > 1 }.uniq
|
62
|
+
|
63
|
+
if duplicates.any? then
|
64
|
+
raise 'Duplicate path found. Path: ' + duplicates.inspect
|
65
|
+
end
|
66
|
+
|
58
67
|
@debug2 = debug2 ? true : false
|
59
68
|
@success = []
|
60
69
|
|
@@ -64,7 +73,7 @@ module Testdata
|
|
64
73
|
else
|
65
74
|
raw_x
|
66
75
|
end
|
67
|
-
|
76
|
+
|
68
77
|
procs = {NilClass: :test_all, Range: :test_range, String: :test_id,
|
69
78
|
Integer: :test_id, Fixnum: :test_id}
|
70
79
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|