Skip to content

Commit

Permalink
Add golangci-lint as a developer tool in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
churmd committed Mar 7, 2024
1 parent 839d523 commit 3b42cae
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ func main() {

## Functions

* `ResetAllSessionsAndMocks` - Clears the Smocker server of all sessions and mocks. Leaving it in a clean state.
* `StartSession` - Starts a new session on the Smocker server with the given name. New mocks will be added to the latest
session started.
* `AddMock` - Adds a new mock to the current session on the Smocker server. Mocks can be made using the provided
builders
or raw json option detailed below.
* `VerifyMocksInCurrentSession` - Checks all the mocks in the session have been called and that no other calls have been
made
- `ResetAllSessionsAndMocks` - Clears the Smocker server of all sessions and mocks. Leaving it in a clean state.
- `StartSession` - Starts a new session on the Smocker server with the given name. New mocks will be added to the latest
session started.
- `AddMock` - Adds a new mock to the current session on the Smocker server. Mocks can be made using the provided
builders
or raw json option detailed below.
- `VerifyMocksInCurrentSession` - Checks all the mocks in the session have been called and that no other calls have been
made

## Mock Definitions

Expand Down Expand Up @@ -115,4 +115,9 @@ mockJson := `
}
}`
mockDefinition := mock.NewRawJsonDefinition(mockJson)
```
```

## Development Tools

- Docker
- [golangci-lint](https://golangci-lint.run/)

0 comments on commit 3b42cae

Please sign in to comment.