Movatterモバイル変換


[0]ホーム

URL:


Notice  The highest tagged major version isv83.

test_with_stripe_mock

command
v70.15.0+incompatibleLatest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License:MITImports:6Imported by:0

Details

Repository

github.com/stripe/stripe-go

Links

Documentation

Overview

A script that wraps the run of the project test suite and starts stripe-mockwith a custom OpenAPI + fixtures bundle if one was found in the appropriatespot (see `pathSpec` below).

The script passes all its arguments to a Go's test command, and defaults to`./...`. For example, both of the following are valid invocations:

go run test_with_stripe_mock/main.gogo run test_with_stripe_mock/main.go ./charge

The reason that we need a separate script for this is because Go's testinginfrastructure doesn't provide any kind of global hook that we can use to dothis work in only one place before any tests are run.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp