krach-protocol / smol-noice

C port of the krach IoT protocol
1 stars 0 forks source link

Useful test cases #2

Open dereulenspiegel opened 3 years ago

dereulenspiegel commented 3 years ago

To answer the question for useful test cases, there are several "levels" of possible complexity.

Simple

Create test cases that ensure correct basic packet parsing.

Intermediate

Leverage the krach-test tool to create an integration test which successfully connects and authenticates.

More complex

These are test cases which verify the state of the handshake state maching. They most likely require quite advanced mocking.