towerops/test/snmpkit/snmp_lib/pdu
mayor b42ac8f999
Expand PDU.V3Encoder tests (22 new tests)
Improve coverage from 37.97% to 40.64% with tests for:
- PDU types in SNMPv3 messages (get_next, get_response, set, getbulk)
- Context engine ID and context name (empty, non-empty, both)
- Message max size variations (minimum 484, custom values)
- Multiple varbinds in v3 messages
- Error responses with various error_status values (0-5)
- Reportable flag variations (true/false)
- USM security model
- All SNMP value types (counter64, gauge32, ip_address, opaque, oid)
- Exception values (no_such_object, no_such_instance, end_of_mib_view)
- Message ID edge cases (0, max 2147483647)
- Discovery message consistency

Tests verify message encoding completes without crashes
even when V3 security processing is involved.

Coverage: 1,391 → 1,419 tests, all passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-06 08:57:48 -06:00
..
constants_test.exs test: add comprehensive tests for PDU.Constants and MIB.Logger 2026-02-06 08:36:20 -06:00
encoder_test.exs Add comprehensive tests for PDU.Encoder (87 tests) 2026-02-06 08:53:52 -06:00
v3_encoder_test.exs Expand PDU.V3Encoder tests (22 new tests) 2026-02-06 08:57:48 -06:00