You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_response_writer.go
    path of file: ./repos/testify/http
    
    the code of the file until where you have to start completion: package http

import (
	"net/http"
)

// Deprecated: Use [net/http/httptest] instead.
type TestResponseWriter struct {

	// StatusCode is the last int written by the
    
func (rw *TestResponseWriter) Write(bytes []byte) (int, error) {

	// assume 200 success if no header has been set
	if rw.StatusCode == 0 {
		rw.WriteHeader(200)
	}

	// add these bytes to the output string
	rw.Output += string(bytes)

	// return normal values
	return 0, nil

}