MCPcopy
hub / github.com/syncthing/syncthing / encFileInfo

Function encFileInfo

lib/protocol/encryption_test.go:147–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func encFileInfo() FileInfo {
148 return FileInfo{
149 Name: "hello",
150 Size: 45,
151 Permissions: 0o755,
152 ModifiedS: 8080,
153 Sequence: 1000,
154 Blocks: []BlockInfo{
155 {
156 Offset: 0,
157 Size: 45,
158 Hash: []byte{1, 2, 3},
159 },
160 {
161 Offset: 45,
162 Size: 45,
163 Hash: []byte{1, 2, 3},
164 },
165 },
166 }
167}
168
169func TestEnDecryptFileInfo(t *testing.T) {
170 if cryptoIsBrokenUnderRaceDetector {

Callers 2

TestEnDecryptFileInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected