goshims

module
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0

README

Go Shims

Go Report Card Go Reference

Have you ever wanted to fake out go system libary calls? In most cases you create an interface and then provide a mock/fake implementation and a shim that calls the real calls. That's great if you only have to do it once. What happens when it becomes a pattern and these little utilities end up duplicated everywhere...that's a problem. This repo is the solution.

[!NOTE]

This repository should be imported as code.cloudfoundry.org/goshims.

Docs

Contributing

See the Contributing.md for more information on how to contribute.

Working Group Charter

This repository is maintained by App Runtime Platform under Volume Services area.

[!IMPORTANT]

Content in this file is managed by the CI task sync-readme and is generated by CI following a convention.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
bufio_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
This file was generated by counterfeiter with command: counterfeiter -p os/exec BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
exec_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/filepathshim path/filepath
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/filepathshim path/filepath
filepath_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
http_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
ldap_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
mysql_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/osshim os BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/osshim os BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS
os_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/nfs-volume-release/src/code.cloudfoundry.org/goshims/sqlshim database/sql
This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/nfs-volume-release/src/code.cloudfoundry.org/goshims/sqlshim database/sql
sql_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
syscall_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
time_fake
Code generated by counterfeiter.
Code generated by counterfeiter.
This file was generated by counterfeiter with command: counterfeiter -p os/user
This file was generated by counterfeiter with command: counterfeiter -p os/user
user_fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL