MCPcopy
hub / github.com/rclone/rclone / importPaperForTest

Method importPaperForTest

backend/dropbox/dropbox_internal_test.go:53–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func (f *Fs) importPaperForTest(t *testing.T) {
54 content := `# test doc
55
56Lorem ipsum __dolor__ sit amet
57[link](http://google.com)
58`
59
60 arg := files.PaperCreateArg{
61 Path: f.slashRootSlash + "export.paper",
62 ImportFormat: &files.ImportFormat{Tagged: dropbox.Tagged{Tag: files.ImportFormatMarkdown}},
63 }
64 var err error
65 err = f.pacer.Call(func() (bool, error) {
66 reader := strings.NewReader(content)
67 _, err = f.srv.PaperCreate(&arg, reader)
68 return shouldRetry(context.Background(), err)
69 })
70 require.NoError(t, err)
71}
72
73func (f *Fs) InternalTestPaperExport(t *testing.T) {
74 ctx := context.Background()

Callers 1

Calls 2

shouldRetryFunction · 0.70
CallMethod · 0.45

Tested by

no test coverage detected