OpenAllegroParser icon indicating copy to clipboard operation
OpenAllegroParser copied to clipboard

Unit Test Tracking

Open Werni2A opened this issue 2 years ago • 0 comments

Tests that should be implemented into the CI.

Feel free to contribute some test files. A few points to note are listed in the following.

  • If you vary a parameter e.g. an enum try to keep the rest of the parameters the same as for other variations of the same parameter. This simplifies finding the offset, when comparing two files byte-by-byte.

  • Do not use 0.0 or other values that might occur elsewhere in the file for tests. Otherwise we might misinterpret some values and the test does not detect this.

  • [ ] Units (enum)

  • [ ] Decimal places (unsigned in range [0, 4])

  • Start

    • [x] Padstack usage (enum)
  • Drill

    • Slot
      • [ ] Slot type (enum)
      • [ ] X size (unsigned)
      • [ ] Y size (unsigned)
        • X tolerance
          • [ ] +
          • [ ] -
        • Y tolerance
          • [ ] +
          • [ ] -
    • Drill hole
      • [ ] Hole type (enum)
      • [ ] Finished diameter (unsigned)
      • [ ] + Tolerance (unsigned)
      • [ ] - Tolerance (unsigned)
      • [ ] Drill tool size (string)
      • [ ] Non-standard drill (enum)
    • Hole plating
      • [ ] Hole/slot plating (enum)
    • Define the drill rows and columns
      • [ ] Number of drill rows (unsigned)
      • [ ] Number of drill columns (unsigned)
      • [ ] Clearance between columns (unsigned)
      • [ ] Clearance between rows (unsigned)
      • [ ] Drills are staggered (bool)
  • Secondary Drill

    • [ ] Backdrill (bool)
      • [ ] Diameter (unsigned)
        • Backdrill drill symbol
          • [ ] Type of drill figure (enum)
          • [ ] Characters (string with <= 3 characters)
          • [ ] Drill figure width (unsigned)
          • [ ] Drill figure height (unsigned)
    • [ ] Counter bore/sink (bool)
      • [ ] Bore type (enum)
      • [ ] Diameter (unsigned)
      • [ ] + Tolerance (unsigned)
      • [ ] - Tolerance (unsigned)
      • [ ] Depth (unsigned)
  • Drill Symbol

    • Define a drill symbol
      • [ ] Type of drill figure (enum)
      • [ ] Characters (string with <= 3 characters)
      • [ ] Drill figure width (unsigned)
      • [ ] Drill figure height (unsigned)
  • Drill Offset

    • Offset from padstack origin to hole
      • [ ] Offset x (int)
      • [ ] Offset y (int)
  • Design Layers

    • ...
  • Mask Layers

    • ...
  • Options

    • [ ] Suppress unconnected internal pads; legacy artwork (bool)
    • [ ] Lock layer span (bool)
    • [ ] Poly via (bool)

Werni2A avatar Jan 04 '22 20:01 Werni2A