(resp *sandboxclient.ExecuteCodeResponse)
| 1794 | } |
| 1795 | |
| 1796 | func convertFromSandboxClientExecuteResponse(resp *sandboxclient.ExecuteCodeResponse) SandboxResponse { |
| 1797 | if resp == nil { |
| 1798 | return SandboxResponse{} |
| 1799 | } |
| 1800 | return SandboxResponse{ |
| 1801 | Stdout: resp.Stdout, |
| 1802 | Stderr: resp.Stderr, |
| 1803 | ExitCode: resp.ExitCode, |
| 1804 | OutputFiles: convertSandboxOutputFiles(resp.OutputFiles), |
| 1805 | } |
| 1806 | } |
| 1807 | |
| 1808 | func decodeSandboxOutputFileContent(content string) []byte { |
| 1809 | trimmed := strings.TrimSpace(content) |
no test coverage detected