(path string)
| 83 | } |
| 84 | |
| 85 | func getTestFolderMetadata(path string) *files.FolderMetadata { |
| 86 | return &files.FolderMetadata{ |
| 87 | Metadata: files.Metadata{ |
| 88 | Name: strings.TrimPrefix(path, "/"), |
| 89 | PathDisplay: path, |
| 90 | PathLower: strings.ToLower(path), |
| 91 | }, |
| 92 | Id: "id:" + strings.TrimPrefix(path, "/"), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func TestGetArgValidation(t *testing.T) { |
| 97 | err := get(getCmd, []string{}) |
no outgoing calls
no test coverage detected