(path string)
| 345 | } |
| 346 | |
| 347 | func (h *testSessionFSHandler) ReadFile(path string) (string, error) { |
| 348 | content, err := os.ReadFile(providerPath(h.root, h.sessionID, path)) |
| 349 | if err != nil { |
| 350 | return "", err |
| 351 | } |
| 352 | return string(content), nil |
| 353 | } |
| 354 | |
| 355 | func (h *testSessionFSHandler) WriteFile(path string, content string, mode *int) error { |
| 356 | fullPath := providerPath(h.root, h.sessionID, path) |
no test coverage detected