towerops/test
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
..
integration make devices site optional and many test fix 2026-02-04 15:05:42 -06:00
mix/tasks more tests 2026-02-03 10:19:56 -06:00
snmpkit test: expand Types module test coverage 2026-02-05 17:24:10 -06:00
support Add comprehensive tests for API authentication and authorization 2026-02-05 16:39:01 -06:00
towerops fix test warnings and failures 2026-02-05 15:24:41 -06:00
towerops_web Add comprehensive tests for API authentication and authorization 2026-02-05 16:39:01 -06:00
test_helper.exs complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00
towerops_native_test.exs complete overhaul of snmp engine to C nif 2026-01-30 12:27:12 -06:00