mocha icon indicating copy to clipboard operation
mocha copied to clipboard

Build Mock APIs in Go

Results 13 mocha issues
Sort by recently updated
recently updated
newest added

**Describe the bug** I'm trying to use mocha to mock a `.tar.gz` artifact download, but the binary response body is corrupted. The error occur because the [Scanner](https://pkg.go.dev/bufio#Scanner) used to [write...

## Summary Resolution of issue https://github.com/vitorsalgado/mocha/issues/35 ## Checklist Please check if your PR fulfills the following requirements: - [ ] The commit message follows **[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)** standard - [ ]...

Generally DELETE messages are treated like GET messages with different connotations, so this prevents client library flags from interfering with matching. ## Summary Generally DELETE messages are treated like GET...

A pattern I currently follow for all my Go tests is to store JSON response bodies in e.g `testdata/all_users.json` or `testdata/europe_users.json` and so on. The [`testdata`](https://github.com/golang/go/blob/1d84b02b228cbd35660e168d26fd2801daed08fe/src/cmd/doc/dirs.go#L137) directory is considered the...

Bumps [fastify/github-action-merge-dependabot](https://github.com/fastify/github-action-merge-dependabot) from 3.4.2 to 3.9.1. Release notes Sourced from fastify/github-action-merge-dependabot's releases. v3.9.1 What's Changed chore(deps-dev): bump sinon from 15.1.2 to 15.2.0 by @​dependabot in fastify/github-action-merge-dependabot#445 chore(deps): bump actions-toolkit from...

dependencies
github_actions

**Describe the bug** newly cloned repo from main branch fails to execute some of the tests. **To Reproduce** Steps to reproduce the behavior: try to compile handler_test.go **Expected behavior** compiles...

Bumps golang from 1.20.2-alpine to 1.20.4-alpine. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang&package-manager=docker&previous-version=1.20.2-alpine&new-version=1.20.4-alpine)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands...

dependencies
docker

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.4. Commits f97607b Create GitHub release when new release tag is pushed (#1354) 4c93d8f EqualExportedValues: Handle nested pointer, slice and map fields (#1379) 4b2f4d2 add...

dependencies
go

Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) from 1.2.0 to 1.3.0. Release notes Sourced from dominikh/staticcheck-action's releases. v1.3.0 Version 1.3.0 Changelog Sourced from dominikh/staticcheck-action's changelog. 1.3.0 Add the output-format option Add the output-file option Add...

dependencies
github_actions

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4. Release notes Sourced from actions/setup-go's releases. v4.0.0 In scope of release we enable cache by default. The action won’t throw an error if the...

dependencies
github_actions