MCPcopy
hub / github.com/rclone/rclone / replaceHex

Method replaceHex

cmd/bisync/bisync_test.go:2020–2026  ·  view source on GitHub ↗

for example, replaces TestS3{juk_h}:dir with TestS3,directory_markers=true:dir because NewFs needs the latter

(remote string)

Source from the content-addressed store, hash-verified

2018// for example, replaces TestS3{juk_h}:dir with TestS3,directory_markers=true:dir
2019// because NewFs needs the latter
2020func (b *bisyncTest) replaceHex(remote string) string {
2021 if bilib.HasHexString(remote) {
2022 remote = strings.ReplaceAll(remote, fs.ConfigString(b.parent1), fs.ConfigStringFull(b.parent1))
2023 remote = strings.ReplaceAll(remote, fs.ConfigString(b.parent2), fs.ConfigStringFull(b.parent2))
2024 }
2025 return remote
2026}

Callers 5

runTestCaseMethod · 0.95
runTestStepMethod · 0.95
runBisyncMethod · 0.95
copyFileMethod · 0.95
newReplacerMethod · 0.95

Calls 3

HasHexStringFunction · 0.92
ConfigStringFunction · 0.92
ConfigStringFullFunction · 0.92

Tested by

no test coverage detected