Expand test coverage (#77)

* ignore line endings in cli tests
* ignore line endings in integration tests
* expand code coverage for `choc` footprint
* expand code coverage for `chocmini` footprint
* expand code coverage for `mx` footprint
* expand code coverage for `pad` footprint
* expand code coverage for rest of footprints
* expand code coverage for `anchor.js`
* expand code coverage for `units.js`
* expand code coverage for `points.js`
* expand code coverage for `filter.js`
* expand code coverage for `outlines.js`
* expand code coverage for `pcbs.js`
* expand code coverage for `ergogen.js`
* expand code coverage for `kle.js`
* more code coverage for `outlines.js`
* expand code coverage for `cases.js`
This commit is contained in:
Luke Kershaw 2023-01-23 09:02:08 +00:00 committed by GitHub
parent 3746900490
commit e0eb43566f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 2842 additions and 37 deletions

View file

@ -0,0 +1,18 @@
points:
zones:
matrix:
mirror:
ref: matrix_only_first
distance: 30
columns:
only.rows:
first.bind: 0
second.bind: [0,10,0,10]
third.bind: [10,0,10,0]
fourth.bind: [u, u/2, u/3, u/4]
outlines:
bound:
- what: rectangle
where: true
size: 20
bound: true

View file

@ -0,0 +1,338 @@
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
-10
20
-10
11
10
21
-10
0
LINE
8
0
10
10
20
-10
11
10
21
9
0
LINE
8
0
10
-10
20
9
11
-10
21
-10
0
LINE
8
0
10
10
20
29
11
20
21
29
0
LINE
8
0
10
20
20
9
11
10
21
9
0
LINE
8
0
10
-10
20
9
11
-20
21
9
0
LINE
8
0
10
-20
20
9
11
-20
21
29
0
LINE
8
0
10
-20
20
29
11
-10
21
29
0
LINE
8
0
10
10
20
29
11
10
21
40.6666667
0
LINE
8
0
10
-10
20
29
11
-10
21
40.6666667
0
LINE
8
0
10
-14.75
20
86
11
44.75
21
86
0
LINE
8
0
10
10
20
40.6666667
11
20
21
40.6666667
0
LINE
8
0
10
-10
20
40.6666667
11
-14.75
21
40.6666667
0
LINE
8
0
10
-14.75
20
40.6666667
11
-14.75
21
86
0
LINE
8
0
10
20
20
-10
11
40
21
-10
0
LINE
8
0
10
40
20
-10
11
40
21
9
0
LINE
8
0
10
20
20
9
11
20
21
-10
0
LINE
8
0
10
40
20
29
11
50
21
29
0
LINE
8
0
10
50
20
9
11
50
21
29
0
LINE
8
0
10
50
20
9
11
40
21
9
0
LINE
8
0
10
40
20
29
11
40
21
40.6666667
0
LINE
8
0
10
20
20
29
11
20
21
40.6666667
0
LINE
8
0
10
44.75
20
40.6666667
11
44.75
21
86
0
LINE
8
0
10
44.75
20
40.6666667
11
40
21
40.6666667
0
ENDSEC
0
EOF

View file

@ -17,10 +17,15 @@ outlines:
size: cy
bound: true
fillet:
- what: outline
name: base
- name: base
fillet: 2
scale:
- what: outline
name: fillet
scale: 0.5
- name: fillet
scale: 0.5
combination:
- "base"
- "-scale"
- "~fillet"
expand:
- name: combination
expand: 1

View file

@ -0,0 +1,514 @@
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
8.6
20
-6.6
11
8.6
21
-4.3
0
LINE
8
0
10
8.6
20
12.8
11
8.6
21
23.6
0
LINE
8
0
10
-6.6
20
-8.6
11
6.6
21
-8.6
0
LINE
8
0
10
-8.6
20
-6.6
11
-8.6
21
23.6
0
LINE
8
0
10
-6.6
20
25.6
11
6.6
21
25.6
0
LINE
8
0
10
27.6
20
-6.6
11
27.6
21
23.6
0
LINE
8
0
10
12.4
20
-8.6
11
25.6
21
-8.6
0
LINE
8
0
10
10.4
20
-6.6
11
10.4
21
-4.3
0
LINE
8
0
10
10.4
20
12.8
11
10.4
21
23.6
0
LINE
8
0
10
12.4
20
25.6
11
25.6
21
25.6
0
LINE
8
0
10
4.3
20
-3.3
11
4.3
21
11.8
0
LINE
8
0
10
-3.3
20
-4.3
11
3.3
21
-4.3
0
LINE
8
0
10
-4.3
20
-3.3
11
-4.3
21
11.8
0
LINE
8
0
10
-3.3
20
12.8
11
3.3
21
12.8
0
LINE
8
0
10
13.8
20
-3.3
11
13.8
21
11.8
0
LINE
8
0
10
6.2
20
-4.3
11
8.6
21
-4.3
0
LINE
8
0
10
10.4
20
-4.3
11
12.8
21
-4.3
0
LINE
8
0
10
5.2
20
-3.3
11
5.2
21
11.8
0
LINE
8
0
10
6.2
20
12.8
11
8.6
21
12.8
0
LINE
8
0
10
10.4
20
12.8
11
12.8
21
12.8
0
ARC
8
0
10
3.3
20
11.8
40
1
50
0
51
90
0
ARC
8
0
10
-3.3
20
11.8
40
1
50
90
51
180
0
ARC
8
0
10
-3.3
20
-3.3
40
1
50
180
51
270
0
ARC
8
0
10
3.3
20
-3.3
40
1
50
270
51
0
0
ARC
8
0
10
12.8
20
11.8
40
1
50
0
51
90
0
ARC
8
0
10
6.2
20
11.8
40
1
50
90
51
180
0
ARC
8
0
10
6.2
20
-3.3
40
1
50
180
51
270
0
ARC
8
0
10
12.8
20
-3.3
40
1
50
270
51
0
0
ARC
8
0
10
6.6
20
23.6
40
2
50
0
51
90
0
ARC
8
0
10
-6.6
20
23.6
40
2
50
90
51
180
0
ARC
8
0
10
-6.6
20
-6.6
40
2
50
180
51
270
0
ARC
8
0
10
6.6
20
-6.6
40
2
50
270
51
0
0
ARC
8
0
10
25.6
20
23.6
40
2
50
0
51
90
0
ARC
8
0
10
12.4
20
23.6
40
2
50
90
51
180
0
ARC
8
0
10
12.4
20
-6.6
40
2
50
180
51
270
0
ARC
8
0
10
25.6
20
-6.6
40
2
50
270
51
0
0
ENDSEC
0
EOF

View file

@ -0,0 +1,410 @@
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
-6.6
20
-9.6
11
6.6
21
-9.6
0
ARC
8
0
10
6.6
20
-6.6
40
3
50
270
51
345.164888
0
ARC
8
0
10
12.4
20
-6.6
40
3
50
194.835112
51
270
0
LINE
8
0
10
12.4
20
-9.6
11
25.6
21
-9.6
0
ARC
8
0
10
25.6
20
-6.6
40
3
50
270
51
360
0
LINE
8
0
10
28.6
20
-6.6
11
28.6
21
23.6
0
ARC
8
0
10
25.6
20
23.6
40
3
50
0
51
90
0
LINE
8
0
10
12.4
20
26.6
11
25.6
21
26.6
0
ARC
8
0
10
12.4
20
23.6
40
3
50
90
51
165.164888
0
ARC
8
0
10
6.6
20
23.6
40
3
50
14.835112
51
90
0
LINE
8
0
10
-6.6
20
26.6
11
6.6
21
26.6
0
ARC
8
0
10
-6.6
20
23.6
40
3
50
90
51
180
0
LINE
8
0
10
-9.6
20
-6.6
11
-9.6
21
23.6
0
ARC
8
0
10
-6.6
20
-6.6
40
3
50
180
51
270
0
LINE
8
0
10
12.8
20
-3.3
11
12.8
21
11.8
0
LINE
8
0
10
10.4
20
11.8
11
12.8
21
11.8
0
ARC
8
0
10
10.4
20
12.8
40
1
50
205.8419331
51
270
0
ARC
8
0
10
8.6
20
12.8
40
1
50
270
51
334.1580669
0
LINE
8
0
10
6.2
20
11.8
11
8.6
21
11.8
0
LINE
8
0
10
6.2
20
-3.3
11
6.2
21
11.8
0
LINE
8
0
10
6.2
20
-3.3
11
8.6
21
-3.3
0
ARC
8
0
10
8.6
20
-4.3
40
1
50
25.8419331
51
90
0
ARC
8
0
10
10.4
20
-4.3
40
1
50
90
51
154.1580669
0
LINE
8
0
10
10.4
20
-3.3
11
12.8
21
-3.3
0
LINE
8
0
10
3.3
20
-3.3
11
3.3
21
11.8
0
LINE
8
0
10
-3.3
20
11.8
11
3.3
21
11.8
0
LINE
8
0
10
-3.3
20
-3.3
11
-3.3
21
11.8
0
LINE
8
0
10
-3.3
20
-3.3
11
3.3
21
-3.3
0
ENDSEC
0
EOF

View file

@ -17,6 +17,7 @@ outlines:
- mirror_matrix
shift: [0, sy/2]
size: [20, 40]
corner: 5
outside_rects:
what: rectangle
where:

View file

@ -67,7 +67,7 @@ LINE
11
10
21
0
5
0
LINE
8
@ -135,7 +135,7 @@ LINE
10
30
20
0
5
11
30
21
@ -145,14 +145,28 @@ LINE
8
0
10
10
15
20
0
11
30
25
21
0
0
ARC
8
0
10
25
20
5
40
5
50
270
51
360
0
LINE
8
0
@ -163,32 +177,74 @@ LINE
11
30
21
35
0
ARC
8
0
10
25
20
35
40
5
50
0
51
90
0
LINE
8
0
10
30
25
20
40
11
10
15
21
40
0
ARC
8
0
10
15
20
35
40
5
50
90
51
180
0
LINE
8
0
10
10
20
40
35
11
10
21
10
0
ARC
8
0
10
15
20
5
40
5
50
180
51
270
0
LINE
8
0