Socket
Socket
Sign inDemoInstall

github.com/googleapis/google-cloud-go-testing

Package Overview
Dependencies
7
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/googleapis/google-cloud-go-testing

These packages contain code that can help you test against the GCP Client Libraries for Go (https://github.com/GoogleCloudPlatform/google-cloud-go). We do not recommend using mocks for most testing. Please read https://testing.googleblog.com/2013/05/testing-on-toilet-dont-overuse-mocks.html. Note: These packages are in alpha. Some backwards-incompatible changes may occur. All interfaces in this package include an embedToIncludeNewMethods method. This is intentionally unexported so that any implementor of the interface must embed the interface in their implementation. Embedding the interface in an implementation has the effect that any future methods added to the interface will not cause compile-time errors (the implementation does not implement the newly-added method), since embedded interfaces provide a default method for unimplemented methods. See Example (RecordBuckets) for an example of how to implement interfaces (including embedding the interface).


Version published

Readme

Source

Testing Support for the Google Cloud Client Libraries for Go

Status

This project is no longer being maintained. If you would like to see patternes you can use to test against the Go client libraries please see the links below:

  • Test cloud.google.com/go clients.
  • Test google.golang.org/api clients.

Install

go get github.com/googleapis/google-cloud-go-testing

This repository contains code that can help you test against the Cloud Client Libraries for Go.

If you plan to use this code for mocks, we recommend you read Don't Overuse Mocks first.

NOTE: This code has alpha status. It may be subject to backwards-incompatible changes.

FAQs

Last updated on 19 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc