Skip to content

Instantly share code, notes, and snippets.

@PaulRBerg
Created January 19, 2023 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulRBerg/d280ba23374e251234ddaee59ff00108 to your computer and use it in GitHub Desktop.
Save PaulRBerg/d280ba23374e251234ddaee59ff00108 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.17;
import { PRBTest } from "@prb/test/PRBTest.sol";
contract ForgeTestNamingConvention is PRBTest {
// Standard tests
function test_Description() external {}
// Tests expecting a revert
function test_RevertWhen_Condition() external {}
// Fork test
function testFork_Description() external {}
// Fork test that expects a revert
function testFork_RevertWhen_Description() external {}
// Fuzz test
function testFuzz_Description() external {}
// Fuzz test that expects a revert
function testFuzz_RevertWhen_Description() external {}
// Fork test that also fuzzes
function testForkFuzz_Description() external {}
// Fork test that also fuzzes and expects a revert
function testForkFuzz_RevertWhen_Condition() external {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment