MCPcopy Create free account
hub / github.com/tailscale/tailscale / checkFileContents

Method checkFileContents

drive/driveimpl/drive_test.go:606–612  ·  view source on GitHub ↗
(remoteName, shareName, name string)

Source from the content-addressed store, hash-verified

604}
605
606func (s *system) checkFileContents(remoteName, shareName, name string) {
607 expected := s.read(remoteName, shareName, name)
608 actual := s.readViaWebDAV(remoteName, shareName, name)
609 if expected != actual {
610 s.t.Errorf("%s/%s/%s should show same contents via WebDAV read as local read\nwant: %q\nhave: %q", remoteName, shareName, name, expected, actual)
611 }
612}
613
614func (s *system) checkDirList(label string, path string, want ...string) {
615 got, err := s.client.ReadDir(path)

Callers 1

TestFileManipulationFunction · 0.80

Calls 3

readMethod · 0.95
readViaWebDAVMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected