Help us shape the future of Go! Take the 2026 Go Developer Survey

filecopier

package module
v0.0.0-...-886d851 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 3 Imported by: 0

README

Build Status Coverage

problem statement

golang package for copying files

features

  • API exposed via interface
  • fake implementation to allow faking interactions

Be advised: this project is currently at Major version zero. Per the semantic versioning spec: "Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable."

Releases

for every release:

Versioning

This project adheres to the Semantic Versioning specification

Contributing

see CONTRIBUTING.md

Changelog

see CHANGELOG.md

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	OSStub func(srcPath string, dstPath string) (err error)
	// contains filtered or unexported fields
}

func (*Fake) Invocations

func (fake *Fake) Invocations() map[string][][]interface{}

func (*Fake) OS

func (fake *Fake) OS(srcPath string, dstPath string) (err error)

func (*Fake) OSArgsForCall

func (fake *Fake) OSArgsForCall(i int) (string, string)

func (*Fake) OSCallCount

func (fake *Fake) OSCallCount() int

func (*Fake) OSReturns

func (fake *Fake) OSReturns(result1 error)

func (*Fake) OSReturnsOnCall

func (fake *Fake) OSReturnsOnCall(i int, result1 error)

type FileCopier

type FileCopier interface {
	// copies an OS file from srcPath to dstPath. Creates or overwrites the destination as needed.
	OS(srcPath string, dstPath string) (err error)
}

func New

func New() FileCopier

Jump to

Keyboard shortcuts

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