Function: pause()
This function is used to pause the contract.
Branches and code coverage
Intended branches
Sets the contract to a paused state.
Negative behavior
Reverts if the caller is not the owner.
Reverts if the contract is already paused.