Getting coverage to 100%

This commit is contained in:
Bán Dénes 2023-01-23 23:34:06 +01:00
parent b27e10374e
commit c45523f38a
25 changed files with 2393 additions and 2282 deletions

24
test/points/autobind.yaml Normal file
View file

@ -0,0 +1,24 @@
points.zones:
none:
key:
autobind: 0
columns:
a:
b:
some:
key:
autobind: 1
columns:
a:
b:
outlines:
none:
- what: rectangle
where: /none_.*/
size: 5
bound: true
some:
- what: rectangle
where: /some_.*/
size: 5
bound: true

View file

@ -0,0 +1,146 @@
0
SECTION
2
HEADER
9
$INSUNITS
70
4
0
ENDSEC
0
SECTION
2
TABLES
0
TABLE
2
LTYPE
0
LTYPE
72
65
70
64
2
CONTINUOUS
3
______
73
0
40
0
0
ENDTAB
0
TABLE
2
LAYER
0
ENDTAB
0
ENDSEC
0
SECTION
2
ENTITIES
0
LINE
8
0
10
-2.5
20
-2.5
11
2.5
21
-2.5
0
LINE
8
0
10
2.5
20
-2.5
11
2.5
21
2.5
0
LINE
8
0
10
2.5
20
2.5
11
-2.5
21
2.5
0
LINE
8
0
10
-2.5
20
2.5
11
-2.5
21
-2.5
0
LINE
8
0
10
16.5
20
-2.5
11
21.5
21
-2.5
0
LINE
8
0
10
21.5
20
-2.5
11
21.5
21
2.5
0
LINE
8
0
10
21.5
20
2.5
11
16.5
21
2.5
0
LINE
8
0
10
16.5
20
2.5
11
16.5
21
-2.5
0
ENDSEC
0
EOF

View file

@ -0,0 +1,146 @@
0
SECTION
2
HEADER
9
$INSUNITS
70
4
0
ENDSEC
0
SECTION
2
TABLES
0
TABLE
2
LTYPE
0
LTYPE
72
65
70
64
2
CONTINUOUS
3
______
73
0
40
0
0
ENDTAB
0
TABLE
2
LAYER
0
ENDTAB
0
ENDSEC
0
SECTION
2
ENTITIES
0
LINE
8
0
10
-2.5
20
-2.5
11
3.5
21
-2.5
0
LINE
8
0
10
-2.5
20
2.5
11
3.5
21
2.5
0
LINE
8
0
10
-2.5
20
2.5
11
-2.5
21
-2.5
0
LINE
8
0
10
3.5
20
-2.5
11
3.5
21
2.5
0
LINE
8
0
10
15.5
20
-2.5
11
21.5
21
-2.5
0
LINE
8
0
10
21.5
20
-2.5
11
21.5
21
2.5
0
LINE
8
0
10
15.5
20
2.5
11
21.5
21
2.5
0
LINE
8
0
10
15.5
20
-2.5
11
15.5
21
2.5
0
ENDSEC
0
EOF

View file

@ -13,3 +13,18 @@ points:
rows:
bottom:
top:
other:
anchor:
ref: matrix_right_top
shift: [100, 100]
# default mirror object, ref = [0, 0], distance = 0
mirror: {}
columns:
left:
rows:
bottom.asym: source
top.asym: clone
right:
rows:
bottom:
top:

View file

@ -193,6 +193,294 @@ LINE
8
0
10
110
20
128
11
128
21
128
0
LINE
8
0
10
128
20
128
11
128
21
110
0
LINE
8
0
10
128
20
110
11
110
21
110
0
LINE
8
0
10
110
20
110
11
110
21
128
0
LINE
8
0
10
129
20
128
11
147
21
128
0
LINE
8
0
10
147
20
128
11
147
21
110
0
LINE
8
0
10
147
20
110
11
129
21
110
0
LINE
8
0
10
129
20
110
11
129
21
128
0
LINE
8
0
10
129
20
147
11
147
21
147
0
LINE
8
0
10
147
20
147
11
147
21
129
0
LINE
8
0
10
147
20
129
11
129
21
129
0
LINE
8
0
10
129
20
129
11
129
21
147
0
LINE
8
0
10
-128
20
147
11
-110
21
147
0
LINE
8
0
10
-110
20
147
11
-110
21
129
0
LINE
8
0
10
-110
20
129
11
-128
21
129
0
LINE
8
0
10
-128
20
129
11
-128
21
147
0
LINE
8
0
10
-147
20
128
11
-129
21
128
0
LINE
8
0
10
-129
20
128
11
-129
21
110
0
LINE
8
0
10
-129
20
110
11
-147
21
110
0
LINE
8
0
10
-147
20
110
11
-147
21
128
0
LINE
8
0
10
-147
20
147
11
-129
21
147
0
LINE
8
0
10
-129
20
147
11
-129
21
129
0
LINE
8
0
10
-129
20
129
11
-147
21
129
0
LINE
8
0
10
-147
20
129
11
-147
21
147
0
LINE
8
0
10
48.05
20
28

View file

@ -0,0 +1,786 @@
{
"matrix_left_bottom": {
"x": 0,
"y": 0,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "source",
"colrow": "left_bottom",
"name": "matrix_left_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"row": "bottom",
"bind": [
10,
10,
0,
0
],
"mirrored": false
}
},
"matrix_right_bottom": {
"x": 19,
"y": 0,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_bottom",
"name": "matrix_right_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "bottom",
"bind": [
10,
0,
0,
10
],
"mirrored": false
}
},
"matrix_right_top": {
"x": 19,
"y": 19,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_top",
"name": "matrix_right_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "top",
"bind": [
0,
0,
10,
10
],
"mirrored": false
}
},
"other_left_bottom": {
"x": 119,
"y": 119,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "source",
"colrow": "left_bottom",
"name": "other_left_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"row": "bottom",
"bind": [
10,
10,
0,
0
],
"mirrored": false
}
},
"other_right_bottom": {
"x": 138,
"y": 119,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_bottom",
"name": "other_right_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "bottom",
"bind": [
10,
0,
0,
10
],
"mirrored": false
}
},
"other_right_top": {
"x": 138,
"y": 138,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "right_top",
"name": "other_right_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "top",
"bind": [
0,
0,
10,
10
],
"mirrored": false
}
},
"mirror_other_left_top": {
"x": -119,
"y": 138,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "clone",
"colrow": "mirror_left_top",
"name": "mirror_other_left_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"row": "top",
"bind": [
0,
10,
10,
0
],
"mirrored": true
}
},
"mirror_other_right_bottom": {
"x": -138,
"y": 119,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "mirror_right_bottom",
"name": "mirror_other_right_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "bottom",
"bind": [
10,
0,
0,
10
],
"mirrored": true
}
},
"mirror_other_right_top": {
"x": -138,
"y": 138,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "mirror_right_top",
"name": "mirror_other_right_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "other"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "top",
"bind": [
0,
0,
10,
10
],
"mirrored": true
}
},
"mirror_matrix_left_top": {
"x": 57.05,
"y": 19,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "clone",
"colrow": "mirror_left_top",
"name": "mirror_matrix_left_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"row": "top",
"bind": [
0,
10,
10,
0
],
"mirrored": true
}
},
"mirror_matrix_right_bottom": {
"x": 38.05,
"y": 0,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "mirror_right_bottom",
"name": "mirror_matrix_right_bottom",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "bottom",
"bind": [
10,
0,
0,
10
],
"mirrored": true
}
},
"mirror_matrix_right_top": {
"x": 38.05,
"y": 19,
"r": 0,
"meta": {
"stagger": 0,
"spread": 19,
"splay": 0,
"origin": [
0,
0
],
"orient": 0,
"shift": [
0,
0
],
"rotate": 0,
"width": 18,
"height": 18,
"padding": 19,
"autobind": 10,
"skip": false,
"asym": "both",
"colrow": "mirror_right_top",
"name": "mirror_matrix_right_top",
"zone": {
"columns": {
"left": {
"rows": {
"bottom": {
"asym": "source"
},
"top": {
"asym": "clone"
}
},
"key": {},
"name": "left"
},
"right": null
},
"rows": {
"bottom": {},
"top": {}
},
"name": "matrix"
},
"col": {
"rows": {},
"key": {},
"name": "right"
},
"row": "top",
"bind": [
0,
0,
10,
10
],
"mirrored": true
}
}
}

View file

@ -0,0 +1,2 @@
points.zones.matrix.key.name: samename
points.zones.other.key.name: samename

View file

@ -0,0 +1 @@
defined more than once