Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dropbox/dbxcli
/ testPutCmdWithStdin
Function
testPutCmdWithStdin
cmd/pipe_test.go:17–21 ·
view source on GitHub ↗
(stdin io.Reader)
Source
from the content-addressed store, hash-verified
15
)
16
17
func
testPutCmdWithStdin(stdin io.Reader) *cobra.Command {
18
cmd := testPutCmd()
19
cmd.SetIn(stdin)
20
return
cmd
21
}
22
23
type
failReadReader
struct
{
24
t *testing.T
Callers
11
TestPutStdin_RequiresTarget
Function · 0.85
TestPutStdin_RejectsRecursive
Function · 0.85
TestPutStdin_RejectsDirectoryStyleTarget
Function · 0.85
TestPutStdin_RejectsExistingFolder
Function · 0.85
TestPutStdin_UploadsContent
Function · 0.85
TestPutStdinSetsClientModified
Function · 0.85
TestPutStdinIfExistsSkipDoesNotReadStdin
Function · 0.85
TestPutStdin_UploadsToDashPath
Function · 0.85
TestPutStdin_EmptyUploadsZeroBytes
Function · 0.85
TestPutStdin_CleanupFailureAfterSuccessfulUpload
Function · 0.85
TestPutStdin_ReportsCleanupFailureAfterUploadFailure
Function · 0.85
Calls
1
testPutCmd
Function · 0.85
Tested by
no test coverage detected