...

Source file src/github.com/ory/fosite/internal/rw.go

Documentation: github.com/ory/fosite/internal

     1  /*
     2   * Copyright © 2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   *
    16   * @author		Aeneas Rekkas <aeneas+oss@aeneas.io>
    17   * @copyright 	2015-2018 Aeneas Rekkas <aeneas+oss@aeneas.io>
    18   * @license 	Apache-2.0
    19   *
    20   */
    21  
    22  // Automatically generated by MockGen. DO NOT EDIT!
    23  // Source: rw.go
    24  
    25  package internal
    26  
    27  import (
    28  	http "net/http"
    29  
    30  	gomock "github.com/golang/mock/gomock"
    31  )
    32  
    33  // Mock of ResponseWriter interface
    34  type MockResponseWriter struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *_MockResponseWriterRecorder
    37  }
    38  
    39  // Recorder for MockResponseWriter (not exported)
    40  type _MockResponseWriterRecorder struct {
    41  	mock *MockResponseWriter
    42  }
    43  
    44  func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter {
    45  	mock := &MockResponseWriter{ctrl: ctrl}
    46  	mock.recorder = &_MockResponseWriterRecorder{mock}
    47  	return mock
    48  }
    49  
    50  func (_m *MockResponseWriter) EXPECT() *_MockResponseWriterRecorder {
    51  	return _m.recorder
    52  }
    53  
    54  func (_m *MockResponseWriter) Header() http.Header {
    55  	ret := _m.ctrl.Call(_m, "Header")
    56  	ret0, _ := ret[0].(http.Header)
    57  	return ret0
    58  }
    59  
    60  func (_mr *_MockResponseWriterRecorder) Header() *gomock.Call {
    61  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Header")
    62  }
    63  
    64  func (_m *MockResponseWriter) Write(_param0 []byte) (int, error) {
    65  	ret := _m.ctrl.Call(_m, "Write", _param0)
    66  	ret0, _ := ret[0].(int)
    67  	ret1, _ := ret[1].(error)
    68  	return ret0, ret1
    69  }
    70  
    71  func (_mr *_MockResponseWriterRecorder) Write(arg0 interface{}) *gomock.Call {
    72  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Write", arg0)
    73  }
    74  
    75  func (_m *MockResponseWriter) WriteHeader(_param0 int) {
    76  	_m.ctrl.Call(_m, "WriteHeader", _param0)
    77  }
    78  
    79  func (_mr *_MockResponseWriterRecorder) WriteHeader(arg0 interface{}) *gomock.Call {
    80  	return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteHeader", arg0)
    81  }
    82  

View as plain text