towerops/test/snmpkit
mayor 35ee87952f
test: expand Types module test coverage
Added comprehensive test coverage for previously untested functionality:

- IP address parsing (valid IPs, invalid inputs, IPv6 rejection)
- Zero-filling behavior for incomplete IPs (Erlang :inet standard)
- Type inference for all SNMP types (integers, strings, lists, booleans, nulls)
- Value decoding for all SNMP types (strings, integers, IPs, OIDs, exceptions)
- Value encoding with type inference and validation controls
- Unsigned32 validation (valid ranges, overflow, underflow)
- Coercion edge cases (IP addresses, unsigned32, octet_string, OIDs, booleans)

Fixes:
- Corrected type inference expectation for large integers (returns :unsigned32)
- Fixed boolean assertion to use equality check instead of pattern match
- Documented :inet.parse_address zero-fill behavior for incomplete IPs

Total: 97 tests, all passing
2026-02-05 17:24:10 -06:00
..
snmp_lib test: expand Types module test coverage 2026-02-05 17:24:10 -06:00
snmp_mgr more tests 2026-02-03 10:43:30 -06:00
api_standardization_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
oid_architecture_validation_test.exs bring in snmpkit 2026-01-23 12:52:17 -06:00
snmp_mgr_integration_test.exs more tests 2026-01-26 11:01:47 -06:00
snmp_test.exs test cleanup 2026-01-28 10:31:22 -06:00
snmpkit_test.exs Fix SNMPkit tests and add coverage for bang methods 2026-02-05 16:46:36 -06:00
test_helper.exs bring in snmpkit 2026-01-23 12:52:17 -06:00