API contract:
A view of an Application Programming Interface(API) as a formal agreement between the caller and the callee. Often the unit tests help define the API contract by demonstrating the expeced behavior. The notion of an API contract stems from the practice of Design by Contract, popularized by the Eiffel programming language( http://archive.eiffel.com/doc/manuals/technology/contract).
A view of an Application Programming Interface(API) as a formal agreement between the caller and the callee. Often the unit tests help define the API contract by demonstrating the expeced behavior. The notion of an API contract stems from the practice of Design by Contract, popularized by the Eiffel programming language( http://archive.eiffel.com/doc/manuals/technology/contract).