gRPC Test Utilities for Golang

Overview

gRPC Test Utilities for Golang

GitHub Releases Build Status codecov Go Report Card GoDevDoc Donate

Test gRPC service and client like a pro.

Prerequisites

  • Go >= 1.16

Install

go get github.com/nhatthm/grpcmock

Usage

Invoke a gRPC method

Unary Method

package main

import (
	"context"
	"time"

	"github.com/nhatthm/grpcmock"
	"google.golang.org/grpc/test/bufconn"
)

func getItem(l *bufconn.Listener, id int32) (interface{}, error) {
	ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*50)
	defer cancel()

	out := &Item{}
	err := grpcmock.InvokeUnary(ctx, "myservice/GetItem",
		&GetItemRequest{Id: id}, out,
		grpcmock.WithHeader("Locale", "en-US"),
		grpcmock.WithBufConnDialer(l),
		grpcmock.WithInsecure(),
	)

	return out, err
}

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

Paypal donation

paypal

       or scan this

Comments
  • Bump golangci/golangci-lint-action from 2.5.2 to 3

    Bump golangci/golangci-lint-action from 2.5.2 to 3

    Bumps golangci/golangci-lint-action from 2.5.2 to 3.

    Release notes

    Sourced from golangci/golangci-lint-action's releases.

    v3.0.0

    What's Changed

    New Contributors

    Full Changelog: https://github.com/golangci/golangci-lint-action/compare/v2...v3.0.0

    Commits
    • c675eb7 Update all direct dependencies (#404)
    • 423fbaf Remove Setup-Go (#403)
    • bcfc6f9 build(deps-dev): bump eslint-plugin-import from 2.25.3 to 2.25.4 (#402)
    • d34ac2a build(deps): bump setup-go from v2.1.4 to v2.2.0 (#401)
    • e4b538e build(deps-dev): bump @​types/node from 16.11.10 to 17.0.19 (#400)
    • a288c0d build(deps): bump @​actions/cache from 1.0.8 to 1.0.9 (#399)
    • b7a34f8 build(deps): bump @​types/tmp from 0.2.2 to 0.2.3 (#398)
    • 129bcf9 build(deps-dev): bump @​types/uuid from 8.3.3 to 8.3.4 (#397)
    • 153576c build(deps-dev): bump eslint-config-prettier from 8.3.0 to 8.4.0 (#396)
    • a9a9dff build(deps): bump ansi-regex from 5.0.0 to 5.0.1 (#395)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 2
  • Bump google.golang.org/grpc from 1.42.0 to 1.43.0

    Bump google.golang.org/grpc from 1.42.0 to 1.43.0

    Bumps google.golang.org/grpc from 1.42.0 to 1.43.0.

    Release notes

    Sourced from google.golang.org/grpc's releases.

    Release 1.43.0

    API Changes

    Behavior Changes

    • status: support wrapped errors in FromContextError (#4977)
    • config: remove the environment variable to disable retry support (#4922)

    New Features

    • balancer: new field Authority in BuildOptions for server name to use in the authentication handshake with a remote load balancer (#4969)

    Bug Fixes

    • xds/resolver: fix possible ClientConn leak upon resolver initialization failure (#4900)
    • client: fix nil panic in rare race conditions with the pick first LB policy (#4971)
    • xds: improve RPC error messages when xDS connection errors occur (#5032, #5054)
    • transport: do not create stream object in the face of illegal stream IDs (#4873)

    Documentation

    • client: clarify errors to indicate whether compressed or uncompressed messages exceeded size limits (#4918)
    Commits
    • 14c1138 Change version to 1.43.0 (#5039)
    • ae29ac3 xds/client: send NewStream errors to the watchers (#5032)
    • 296afc2 transport: better error message when per-RPC creds fail (#5033)
    • e15d978 xds/client: send connection errors to all watchers (#5054)
    • 46e883a Backport "xds/c2p: replace C2P resolver env var with experimental scheme suff...
    • 3786ae1 xds/resolver: Add support for cluster specifier plugins (#4987)
    • 512e894 rls: support extra_keys and constant_keys (#4995)
    • f3bbd12 xds/bootstrap_config: add a string function to server config (#5031)
    • 46935b9 fix possible nil before casting (#5017)
    • c2bccd0 xds/kokoro: install go 1.17, and retry go build (#5015)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • Bump google.golang.org/grpc from 1.50.1 to 1.51.0

    Bump google.golang.org/grpc from 1.50.1 to 1.51.0

    Bumps google.golang.org/grpc from 1.50.1 to 1.51.0.

    Release notes

    Sourced from google.golang.org/grpc's releases.

    Release 1.51.0

    Behavior Changes

    • xds: NACK EDS resources with duplicate addresses in accordance with a recent spec change (#5715)
    • grpc: restrict status codes that can be generated by the control plane (gRFC A54) (#5653)

    New Features

    • client: set grpc-accept-encoding header with all registered compressors (#5541)
    • xds/weightedtarget: return a more meaningful error when all child policies are in TRANSIENT_FAILURE (#5711)
    • gcp/observability: add "started rpcs" metric (#5768)
    • xds: de-experimentalize the google-c2p-resolver (#5707)
    • balancer: add experimental Producer types and methods (#5669)
    • orca: provide a way for LB policies to receive OOB load reports (#5669)

    Bug Fixes

    • go.mod: upgrade x/text dependency to address CVE 2022-32149 (#5769)
    • client: fix race that could lead to an incorrect connection state if it was closed immediately after the server's HTTP/2 preface was received (#5714)
    • xds: ensure sum of the weights of all EDS localities at the same priority level does not exceed uint32 max (#5703)
    • client: fix binary logging bug which logs a server header on a trailers-only response (#5763)
    • balancer/priority: fix a bug where unreleased references to removed child policies (and associated state) was causing a memory leak (#5682)
    • xds/google-c2p: validate URI schema for no authorities (#5756)
    Commits
    • eeb9afa Change version to 1.51.0 (#5782)
    • 72812fe gcp/observability: filter logging from cloud ops endpoints calls (#5765)
    • 0ae33e6 xdsclient: remove unused test code (#5772)
    • 824f449 go.mod: upgrade x/text to v0.4 to address CVE (#5769)
    • 7f23df0 xdsclient: switch xdsclient watch deadlock test to e2e style (#5697)
    • 32f969e o11y: Added started rpc metric in o11y plugin (#5768)
    • b597a8e xdsclient: improve authority watchers test (#5700)
    • e41e894 orca: create ORCA producer for LB policies to use to receive OOB load reports...
    • 36d14db Fix binary logging bug which logs a server header on a trailers only response...
    • fcb8bdf xds/google-c2p: validate url for no authorities (#5756)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump benc-uk/workflow-dispatch from 1 to 121

    Bump benc-uk/workflow-dispatch from 1 to 121

    Bumps benc-uk/workflow-dispatch from 1 to 121.

    Release notes

    Sourced from benc-uk/workflow-dispatch's releases.

    v1.2.2 - Fix ref regression

    Fixes this issue benc-uk/workflow-dispatch#50

    v1.2.1 - Minor

    Adds

    • When triggering disabled workflows the action logs a warning and does not fail

    v1.1 - August 2020 Update

    • Supports specifying workflow both by ID and by name
    • Fix for repos with more than 30 actions, thanks @​eerichmond !
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 1
  • Bump github.com/stretchr/testify from 1.8.0 to 1.8.1

    Bump github.com/stretchr/testify from 1.8.0 to 1.8.1

    Bumps github.com/stretchr/testify from 1.8.0 to 1.8.1.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump google.golang.org/grpc from 1.50.0 to 1.50.1

    Bump google.golang.org/grpc from 1.50.0 to 1.50.1

    Bumps google.golang.org/grpc from 1.50.0 to 1.50.1.

    Release notes

    Sourced from google.golang.org/grpc's releases.

    Release 1.50.1

    New Features

    • gcp/observability: support new configuration defined in public preview user guide
    Commits
    • 4c776ec Cherry-pick observability changes from master to v1.50.x and update version t...
    • 6576007 Change version to 1.50.1-dev (#5686)
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump google.golang.org/grpc from 1.49.0 to 1.50.0

    Bump google.golang.org/grpc from 1.49.0 to 1.50.0

    Bumps google.golang.org/grpc from 1.49.0 to 1.50.0.

    Release notes

    Sourced from google.golang.org/grpc's releases.

    Release 1.50.0

    Behavior Changes

    • client: use proper "@" semantics for connecting to abstract unix sockets. (#5678)
      • This is technically a bug fix; the result is that the address was including a trailing NULL byte, which it should not have. This may break users creating the socket in Go by prefixing a NULL instead of an "@", though, so calling it out as a behavior change.

    New Features

    • metadata: add experimental ValueFromIncomingContext to more efficiently retrieve a single value (#5596)
    • stats: provide peer information in HandleConn context (#5589)
    • xds: add support for Outlier Detection, enabled by default (#5435, #5673)

    Bug Fixes

    • client: fix deadlock in transport caused by GOAWAY racing with stream creation (#5652)
      • This should only occur with an HTTP/2 server that does not follow best practices of an advisory GOAWAY (not a grpc-go server).
    • xds/xdsclient: fix a bug which was causing routes with cluster_specifier_plugin set to be NACKed when GRPC_EXPERIMENTAL_XDS_RLS_LB was off (#5670)
    • xds/xdsclient: NACK cluster resource if config_source_specifier in lrs_server is not self (#5613)
    • xds/ringhash: fix a bug which sometimes prevents the LB policy from retrying connection attempts (#5601)
    • xds/ringhash: do nothing when asked to exit IDLE instead of falling back on the default channel behavior of connecting to all addresses (#5614)
    • xds/rls: fix a bug which was causing the channel to be stuck in IDLE (#5656)
    • alts: fix a bug which was setting WaitForReady on handshaker service RPCs, thereby delaying fallback when required (#5620)
    • gcp/observability: fix End() to cleanup global state correctly (#5623)
    Commits
    • c1d7d7a Change version to 1.50.0 (#5685)
    • 1451c62 internal/transport: optimize grpc-message encoding/decoding (#5654)
    • be4b63b test: minor test cleanup (#5679)
    • d83070e Changed Outlier Detection Env Var to default true (#5673)
    • 54521b2 client: remove trailing null from unix abstract socket address (#5678)
    • 36e4810 orca: cleanup old code, and get grpc package to use new code (#5627)
    • e8866a8 build: harden GitHub Workflow permissions (#5660)
    • 8458251 xdsclient: ignore routes with cluster_specifier_plugin when GRPC_EXPERIMENTAL...
    • a238ceb xDS: Outlier Detection Env Var not hardcoded to false (#5664)
    • b1d7f56 transport: Fix deadlock in transport caused by GOAWAY race with new stream cr...
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump google.golang.org/grpc from 1.48.0 to 1.49.0

    Bump google.golang.org/grpc from 1.48.0 to 1.49.0

    Bumps google.golang.org/grpc from 1.48.0 to 1.49.0.

    Release notes

    Sourced from google.golang.org/grpc's releases.

    Release 1.49.0

    New Features

    • gcp/observability: add support for Environment Variable GRPC_CONFIG_OBSERVABILITY_JSON (#5525)
    • gcp/observability: add support for custom tags (#5565)

    Behavior Changes

    • server: reduce log level from Warning to Info for early connection establishment errors (#5524)

    Bug Fixes

    • client: fix race in flow control that could lead to unexpected EOF errors (#5494)
    • client: fix a race that could cause RPCs to time out instead of failing more quickly with UNAVAILABLE (#5503)
    • client & server: fix a panic caused by passing a nil stats handler to grpc.WithStatsHandler or grpc.StatsHandler (#5543)
    • transport/server: fix a race that could cause a stray header to be sent (#5513)
    • balancer: give precedence to IDLE over TRANSIENT_FAILURE when aggregating connectivity state (#5473)
    • xds/xdsclient: request correct resource name when user specifies a new style resource name with empty authority (#5488)
    • xds/xdsclient: NACK endpoint resources with zero weight (#5560)
    • xds/xdsclient: fix bug that would reset resource version information after ADS stream restart (#5422)
    • xds/xdsclient: fix goroutine leaks when load reporting is enabled (#5505)
    • xds/ringhash: fix config update processing to recreate ring and picker when min/max ring size changes (#5557)
    • xds/ringhash: avoid recreating subChannels when update doesn't change address weight information (#5431)
    • xds/priority: fix bug which could cause priority LB to block all traffic after a config update (#5549)
    • xds: fix bug when environment variable GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION is set to true (#5537)
    Commits
    • 1c29e07 Change version to 1.49.0 (#5583)
    • 8e5a84e xds/resolver: generate channel ID randomly (#5603)
    • 92cee34 gcp/observability: Add logging filters for logging, tracing, and metrics API ...
    • c7fe135 O11Y: Added support for custom tags (#5565)
    • 7981af4 test/kokoro: add missing image tagging to the xDS interop url map buildscript...
    • 6f34b7a xdsclient: NACK endpoint resource if load_balancing_weight is specified and i...
    • f9409d3 ringhash: handle config updates properly (#5557)
    • 946dde0 xdsclient: NACK endpoint resources with zero weight (#5560)
    • b89f49b xdsclient: deflake Test/LDSWatch_PartialValid (#5552)
    • 9bc72de grpc: remove mentions of WithBalancerName from comments (#5555)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump google.golang.org/protobuf from 1.28.0 to 1.28.1

    Bump google.golang.org/protobuf from 1.28.0 to 1.28.1

    Bumps google.golang.org/protobuf from 1.28.0 to 1.28.1.

    Release notes

    Sourced from google.golang.org/protobuf's releases.

    v1.28.1

    This release contains protoc-gen-go binaries for arm64.

    Notable changes since v1.28.0:

    • CL/418677: internal/impl: improve MessageInfo.New performance
    • CL/411377: proto: short-circuit Equal when inputs are identical
    • CL/419714: all: Add prebuild binaries for arm64
    Commits
    • 6875c3d all: release v1.28.1
    • 881da6e all: Add prebuild binaries for arm64
    • 2a74a0e A+C: delete AUTHORS and CONTRIBUTORS
    • de9682a internal/impl: improve MessageInfo.New performance
    • b0a9446 all: reformat with go1.19 gofmt
    • c1bbc5d all: make integration test work on darwin/arm64
    • 5f429f7 proto: fix compilation failure in tests
    • fc44d00 proto: use reflect.Ptr for backward compatibility
    • 380c339 proto: short-circuit Equal when inputs are identical
    • 784c482 all: remove shorthand import aliases
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump github.com/spf13/afero from 1.9.0 to 1.9.2

    Bump github.com/spf13/afero from 1.9.0 to 1.9.2

    Bumps github.com/spf13/afero from 1.9.0 to 1.9.2.

    Release notes

    Sourced from github.com/spf13/afero's releases.

    v1.9.2

    What's Changed

    Full Changelog: https://github.com/spf13/afero/compare/v1.9.1...v1.9.2

    v1.9.1

    What's Changed

    Full Changelog: https://github.com/spf13/afero/compare/v1.9.0...v1.9.1

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
  • Bump github.com/spf13/afero from 1.8.2 to 1.9.0

    Bump github.com/spf13/afero from 1.8.2 to 1.9.0

    Bumps github.com/spf13/afero from 1.8.2 to 1.9.0.

    Release notes

    Sourced from github.com/spf13/afero's releases.

    v1.9.0

    What's Changed

    New Contributors

    Full Changelog: https://github.com/spf13/afero/compare/v1.8.2...v1.9.0

    Commits
    • b0a534a Update README.md
    • c92ae36 Make IOFS.ReadDir check for fs.ReadDirFile
    • 52b6417 Fix staticcheck lint errors
    • 939bf3d Fix test failures on Windows
    • 9439436 all: Run gofmt -s -w
    • 015be45 Move CI tests to GitHub Action
    • 100c9a6 Merge pull request #346 from jeffwidman/bump-minimum-go-version
    • c45d7c7 Bump minimum go version to 1.16
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies go 
    opened by dependabot[bot] 1
Releases(v0.20.0)
  • v0.20.0(Aug 28, 2022)

    ⚠️ From v0.20.0, the project will be rebranded to go.nhat.io/grpcmock. v.19.0 is the last version with github.com/nhatthm/grpcmock.

    What's Changed

    • Move to go.nhat.io by @nhatthm in https://github.com/nhatthm/grpcmock/pull/44

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.19.0...v0.20.0

    Source code(tar.gz)
    Source code(zip)
  • v0.19.0(Aug 24, 2022)

    ⚠️ From v0.20.0, the project will be rebranded to go.nhat.io/grpcmock. v.19.x is the last version with github.com/nhatthm/grpcmock.

    What's Changed

    • Bump google.golang.org/grpc from 1.48.0 to 1.49.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/42
    • Use packages from go.nhat.io by @nhatthm in https://github.com/nhatthm/grpcmock/pull/43

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.18.0...v0.19.0

    Source code(tar.gz)
    Source code(zip)
  • v0.18.0(Jul 29, 2022)

    What's Changed

    • Bump codecov/codecov-action from 2 to 3 by @dependabot in https://github.com/nhatthm/grpcmock/pull/26
    • Bump actions/setup-go from 2 to 3 by @dependabot in https://github.com/nhatthm/grpcmock/pull/27
    • Bump google.golang.org/grpc from 1.45.0 to 1.46.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/28
    • Bump google.golang.org/grpc from 1.46.0 to 1.46.2 by @dependabot in https://github.com/nhatthm/grpcmock/pull/29
    • Bump github.com/swaggest/assertjson from 1.6.8 to 1.7.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/30
    • Bump dependencies by @nhatthm in https://github.com/nhatthm/grpcmock/pull/31
    • Bump google.golang.org/grpc from 1.46.2 to 1.47.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/32
    • Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 by @dependabot in https://github.com/nhatthm/grpcmock/pull/33
    • Bump github.com/stretchr/testify from 1.7.2 to 1.7.4 by @dependabot in https://github.com/nhatthm/grpcmock/pull/35
    • Bump github.com/stretchr/testify from 1.7.4 to 1.7.5 by @dependabot in https://github.com/nhatthm/grpcmock/pull/36
    • Bump github.com/stretchr/testify from 1.7.5 to 1.8.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/37
    • Bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/38
    • Bump github.com/spf13/afero from 1.8.2 to 1.9.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/39
    • Bump github.com/spf13/afero from 1.9.0 to 1.9.2 by @dependabot in https://github.com/nhatthm/grpcmock/pull/40
    • Bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in https://github.com/nhatthm/grpcmock/pull/41

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.17.0...v0.18.0

    Source code(tar.gz)
    Source code(zip)
  • v0.17.0(Apr 5, 2022)

    What's Changed

    • Bump github.com/spf13/afero from 1.6.0 to 1.7.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/11
    • Bump github.com/spf13/afero from 1.7.0 to 1.7.1 by @dependabot in https://github.com/nhatthm/grpcmock/pull/12
    • Bump github.com/spf13/afero from 1.7.1 to 1.8.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/13
    • Bump google.golang.org/grpc from 1.43.0 to 1.44.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/14
    • Bump github.com/spf13/afero from 1.8.0 to 1.8.1 by @dependabot in https://github.com/nhatthm/grpcmock/pull/15
    • Bump golangci-lint-action to v3 by @nhatthm in https://github.com/nhatthm/grpcmock/pull/17
    • Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/nhatthm/grpcmock/pull/18
    • Bump github.com/spf13/afero from 1.8.1 to 1.8.2 by @dependabot in https://github.com/nhatthm/grpcmock/pull/20
    • Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 by @dependabot in https://github.com/nhatthm/grpcmock/pull/21
    • Bump actions/cache from 2 to 3 by @dependabot in https://github.com/nhatthm/grpcmock/pull/22
    • Bump google.golang.org/protobuf from 1.27.1 to 1.28.0 by @dependabot in https://github.com/nhatthm/grpcmock/pull/23
    • Bump dependencies by @nhatthm in https://github.com/nhatthm/grpcmock/pull/24
    • Lock Serve() until server starts accepting connections by @nhatthm in https://github.com/nhatthm/grpcmock/pull/25

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.16.0...v0.17.0

    Source code(tar.gz)
    Source code(zip)
  • v0.16.0(Dec 16, 2021)

    What's Changed

    • Bump dependencies by @nhatthm in https://github.com/nhatthm/grpcmock/pull/10

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.15.0...v0.16.0

    Source code(tar.gz)
    Source code(zip)
  • v0.15.0(Dec 13, 2021)

    What's Changed

    • Bump github.com/nhatthm/aferomock from 0.3.0 to 0.3.1 by @dependabot in https://github.com/nhatthm/grpcmock/pull/7
    • Strictly define a custom type for the number of repeated times by @nhatthm in https://github.com/nhatthm/grpcmock/pull/8

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.14.0...v0.15.0

    Source code(tar.gz)
    Source code(zip)
  • v0.14.0(Dec 12, 2021)

    What's Changed

    • Make examples run with grpctest by @nhatthm in https://github.com/nhatthm/grpcmock/pull/6

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.13.1...v0.14.0

    Source code(tar.gz)
    Source code(zip)
  • v0.13.1(Dec 10, 2021)

    What's Changed

    • Fix cannot send messages with ServerStream by @nhatthm in https://github.com/nhatthm/grpcmock/pull/5

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.13.0...v0.13.1

    Source code(tar.gz)
    Source code(zip)
  • v0.13.0(Dec 10, 2021)

    What's Changed

    • Add FindServerMethod to retrieve method metadata by @nhatthm in https://github.com/nhatthm/grpcmock/pull/4

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.12.0...v0.13.0

    Source code(tar.gz)
    Source code(zip)
  • v0.12.0(Dec 10, 2021)

    What's Changed

    • Start new server automatically by @nhatthm in https://github.com/nhatthm/grpcmock/pull/3

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.11.0...v0.12.0

    Source code(tar.gz)
    Source code(zip)
  • v0.11.0(Dec 7, 2021)

    What's Changed

    • Add FirstMatch planner by @nhatthm in https://github.com/nhatthm/grpcmock/pull/2

    New Contributors

    • @nhatthm made their first contribution in https://github.com/nhatthm/grpcmock/pull/2

    Full Changelog: https://github.com/nhatthm/grpcmock/compare/v0.10.0...v0.11.0

    Source code(tar.gz)
    Source code(zip)
  • v0.10.0(Nov 29, 2021)

  • v0.9.0(Nov 20, 2021)

  • v0.8.0(Nov 9, 2021)

  • v0.5.1(Oct 31, 2021)

  • v0.5.0(Oct 31, 2021)

  • v0.3.0(Oct 30, 2021)

  • v0.2.0(Oct 30, 2021)

  • v0.1.0(Oct 28, 2021)

Owner
Nhat
🚀 Tech-savvy and Biker 🏍
Nhat
go-test-trace is like go test but it also generates distributed traces.

go-test-trace go-test-trace is like go test but it also generates distributed traces. Generated traces are exported in OTLP to a OpenTelemetry collect

JBD 376 Jan 5, 2023
Flugel Test Documentation for steps to run and test the automatio

Flugel Test Documentation Documentation for steps to run and test the automation #Test-01 1 - Local Test Using Terratest (End To End) 1- By runing " t

Suc0_Unix 0 Nov 13, 2022
This repository includes consumer driven contract test for provider, unit test and counter api.

This repository includes consumer driven contract test for provider, unit test and counter api.

Ahmet Zümberoğlu 0 Feb 1, 2022
Grpcmock - Mock grpc server with golang

grpcmock Mock gRPC server. Inspired by Prism. Add example responses to your prot

Eric Butler 3 May 8, 2022
Sql mock driver for golang to test database interactions

Sql driver mock for Golang sqlmock is a mock library implementing sql/driver. Which has one and only purpose - to simulate any sql driver behavior in

DATA-DOG 4.9k Dec 31, 2022
A test-friendly replacement for golang's time package

timex timex is a test-friendly replacement for the time package. Usage Just replace your time.Now() by a timex.Now() call, etc. Mocking Use timex.Over

Cabify 66 Dec 21, 2022
Simple HTTP integration test framework for Golang

go-itest Hassle-free REST API testing for Go. Installation go get github.com/jefflinse/go-itest Usage Create tests for your API endpoints and run the

Jeff Linse 12 Jan 8, 2022
Http test server written in Golang.

Dummy Server Http test server written in Golang. Can get any request method and log headers, body, path and remote address. Useful if you need to know

Yury Krylov 0 Oct 31, 2021
Entain BE Technical Test with golang

Entain BE Technical Test This test has been designed to demonstrate your ability and understanding of technologies commonly used at Entain. Please tre

null 0 Nov 17, 2021
Simple test driven approach in "GOLANG"

Testing in GOLANG Usage Only test go test -v Coverage go test -cover or go test -coverprofile=coverage.out go tool cover -html=coverage.out Benchmark

mahdi imani 0 Dec 5, 2021
A simple yet intuitive golang unit test framework.

gotest Intuitive and simple golang testing framework which helps in writing unit tests in a way which improves the readability of the test. Here is an

null 1 Jan 1, 2022
Byteslice - Byteslice test with golang

ZKP Gnark Objective ot this POC Evaluate the mechanics of ZKP using the gnark ki

Anja Ishmukhametova 1 Jan 18, 2022
Belajar golang unit test

perintah eksekusi di root folder : go test -v ./... assertion ambil dari framewo

Dhany 0 Feb 3, 2022
Test your command line interfaces on windows, linux and osx and nodes viá ssh and docker

Commander Define language independent tests for your command line scripts and programs in simple yaml files. It runs on windows, osx and linux It can

null 209 Dec 17, 2022
Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

embedded-postgres Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test. When testing this provides

Fergus Strange 494 Dec 27, 2022
End to end functional test and automation framework

Declarative end to end functional testing (endly) This library is compatible with Go 1.12+ Please refer to CHANGELOG.md if you encounter breaking chan

Viant, Inc 231 Jan 6, 2023
Test your code without writing mocks with ephemeral Docker containers 📦 Setup popular services with just a couple lines of code ⏱️ No bash, no yaml, only code 💻

Gnomock – tests without mocks ??️ Spin up entire dependency stack ?? Setup initial dependency state – easily! ?? Test against actual, close to product

Yury Fedorov 1k Dec 29, 2022
go-carpet - show test coverage in terminal for Go source files

go-carpet - show test coverage for Go source files To view the test coverage in the terminal, just run go-carpet. It works outside of the GOPATH direc

Sergey Mudrik 234 Jan 8, 2023
http integration test framework

go-hit hit is an http integration test framework written in golang. It is designed to be flexible as possible, but to keep a simple to use interface f

Tobias Salzmann 157 Dec 29, 2022