towerops/test/snmpkit/snmp_lib/mib
mayor b653932879
test: expand MIB.Parser tests (8.66% → 9.96%)
Added 80+ comprehensive tests covering:
- init_parser/0 - Parser initialization (2 tests)
- tokenize/1 - MIB tokenization (11 tests)
- parse/1 - MIB parsing (6 tests)
- parse_tokens/1 - Pre-tokenized parsing (3 tests)
- mibdirs/1 - Directory batch parsing (4 tests)
- Hex atom conversion and integration (3 tests)
- Error handling for malformed MIBs (4 tests)
- MIB structure parsing (MODULE-IDENTITY, TEXTUAL-CONVENTION, etc.) (4 tests)
- Complex MIB features (IMPORTS, SEQUENCE, INDEX, SIZE, ranges) (5 tests)
- Description cleaning edge cases (3 tests)
- Edge cases (large files, long identifiers, nested OIDs) (4 tests)
- Real-world MIB patterns (SNMPv2, tables, various syntax types) (7 tests)

Most parse tests tagged @tag :yecc_required (excluded by default).
Tokenize tests run without yecc dependency.
Coverage: 8.66% → 9.96% (+1.3%)
Total tests: 1,480 (all passing, 38 excluded)
2026-02-06 09:09:28 -06:00
..
ast_test.exs Add comprehensive test coverage for SNMPkit modules 2026-02-05 17:03:41 -06:00
compiler_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
comprehensive_mib_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
docsis_mib_test.exs snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
error_test.exs test: add comprehensive tests for MIB.Error 2026-02-06 08:38:33 -06:00
logger_test.exs test: add comprehensive tests for PDU.Constants and MIB.Logger 2026-02-06 08:36:20 -06:00
parser_test.exs test: expand MIB.Parser tests (8.66% → 9.96%) 2026-02-06 09:09:28 -06:00
preprocessor_test.exs Add comprehensive test coverage for SNMPkit modules 2026-02-05 17:03:41 -06:00
registry_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
snmp_tokenizer_test.exs test: add comprehensive tests for MIB.SnmpTokenizer 2026-02-06 08:45:23 -06:00
utilities_test.exs Add comprehensive test coverage for SNMPkit modules 2026-02-05 17:03:41 -06:00