rclone: add automated tests using the memory backend#50
Merged
Conversation
e137e7d to
4956b9c
Compare
Collaborator
Author
|
draft because i'd like to merge #47 before this goes in. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZnYP7V15HXDgU759LEnMw
e962a1b to
20fa00e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rclone/connector_test.gowith 16 tests covering the full connector surfacememorybackend for fully in-process testing (no network, no temp files, no fake FS overlay needed)Tests added
Metadata / connectivity
TestMetadata— verifiesType(),Origin(),Root()TestPing— verifiesPing()succeeds on a non-empty backendImporter
TestImport— walks a seeded tree, checks expected paths arrive on the records channelTestImportFileContent— opens a record'sReaderand verifies file contentExporter
TestExport— creates a directory and a file, verifies the file lands in the rclone FSTestExportSkipsXattr— xattr records are ack'd without writing to the FSTestExportSkipsRoot— the/directory record is ack'd without calling MkdirStorage
TestStorageCreateOpen— round-trips the CONFIG blobTestStorageCreateAlreadyExists— secondCreatereturns an errorTestStoragePutGetRoundtrip— subtests for packfile, state, and lock resourcesTestStoragePutGetRange— byte-range read returns the correct sliceTestStorageList— two objects appear after two PutsTestStorageDelete— object disappears from List after DeleteTestStorageUnsupportedResource— all four storage methods return an error for an unknown resourceTestStorageMode— returnsModeRead|ModeWriteTestStorageSize— returns-1Generated by Claude Code