| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- // Mocks generated by Mockito 5.0.15 from annotations
- // in xterm/test/terminal/terminal_search_test.dart.
- // Do not manually edit this file.
- import 'package:mockito/mockito.dart' as _i1;
- import 'package:xterm/buffer/buffer.dart' as _i2;
- import 'package:xterm/buffer/line/line.dart' as _i6;
- import 'package:xterm/terminal/charset.dart' as _i4;
- import 'package:xterm/terminal/cursor.dart' as _i10;
- import 'package:xterm/terminal/terminal.dart' as _i3;
- import 'package:xterm/terminal/terminal_search_interaction.dart' as _i8;
- import 'package:xterm/util/circular_list.dart' as _i5;
- import 'package:xterm/util/scroll_range.dart' as _i7;
- import 'terminal_search_test.dart' as _i9;
- // ignore_for_file: avoid_redundant_argument_values
- // ignore_for_file: avoid_setters_without_getters
- // ignore_for_file: comment_references
- // ignore_for_file: implementation_imports
- // ignore_for_file: invalid_use_of_visible_for_testing_member
- // ignore_for_file: prefer_const_constructors
- // ignore_for_file: unnecessary_parenthesis
- class _FakeBuffer_0 extends _i1.Fake implements _i2.Buffer {}
- class _FakeTerminal_1 extends _i1.Fake implements _i3.Terminal {}
- class _FakeCharset_2 extends _i1.Fake implements _i4.Charset {}
- class _FakeCircularList_3<T> extends _i1.Fake implements _i5.CircularList<T> {}
- class _FakeBufferLine_4 extends _i1.Fake implements _i6.BufferLine {}
- class _FakeScrollRange_5 extends _i1.Fake implements _i7.ScrollRange {}
- class _FakeBufferLineData_6 extends _i1.Fake implements _i6.BufferLineData {}
- /// A class which mocks [TerminalSearchInteraction].
- ///
- /// See the documentation for Mockito's code generation for more information.
- class MockTerminalSearchInteraction extends _i1.Mock
- implements _i8.TerminalSearchInteraction {
- MockTerminalSearchInteraction() {
- _i1.throwOnMissingStub(this);
- }
- @override
- _i2.Buffer get buffer => (super.noSuchMethod(Invocation.getter(#buffer),
- returnValue: _FakeBuffer_0()) as _i2.Buffer);
- @override
- int get terminalWidth =>
- (super.noSuchMethod(Invocation.getter(#terminalWidth), returnValue: 0)
- as int);
- @override
- bool isUsingAltBuffer() =>
- (super.noSuchMethod(Invocation.method(#isUsingAltBuffer, []),
- returnValue: false) as bool);
- @override
- String toString() => super.toString();
- }
- /// A class which mocks [Buffer].
- ///
- /// See the documentation for Mockito's code generation for more information.
- class MockBuffer extends _i1.Mock implements _i2.Buffer {
- MockBuffer() {
- _i1.throwOnMissingStub(this);
- }
- @override
- _i3.Terminal get terminal => (super.noSuchMethod(Invocation.getter(#terminal),
- returnValue: _FakeTerminal_1()) as _i3.Terminal);
- @override
- bool get isAltBuffer =>
- (super.noSuchMethod(Invocation.getter(#isAltBuffer), returnValue: false)
- as bool);
- @override
- _i4.Charset get charset => (super.noSuchMethod(Invocation.getter(#charset),
- returnValue: _FakeCharset_2()) as _i4.Charset);
- @override
- _i5.CircularList<_i6.BufferLine> get lines =>
- (super.noSuchMethod(Invocation.getter(#lines),
- returnValue: _FakeCircularList_3<_i6.BufferLine>())
- as _i5.CircularList<_i6.BufferLine>);
- @override
- set lines(_i5.CircularList<_i6.BufferLine>? _lines) =>
- super.noSuchMethod(Invocation.setter(#lines, _lines),
- returnValueForMissingStub: null);
- @override
- int get scrollOffsetFromBottom =>
- (super.noSuchMethod(Invocation.getter(#scrollOffsetFromBottom),
- returnValue: 0) as int);
- @override
- int get scrollOffsetFromTop => (super
- .noSuchMethod(Invocation.getter(#scrollOffsetFromTop), returnValue: 0)
- as int);
- @override
- bool get isUserScrolling => (super
- .noSuchMethod(Invocation.getter(#isUserScrolling), returnValue: false)
- as bool);
- @override
- int get cursorX =>
- (super.noSuchMethod(Invocation.getter(#cursorX), returnValue: 0) as int);
- @override
- int get cursorY =>
- (super.noSuchMethod(Invocation.getter(#cursorY), returnValue: 0) as int);
- @override
- int get marginTop =>
- (super.noSuchMethod(Invocation.getter(#marginTop), returnValue: 0)
- as int);
- @override
- int get marginBottom =>
- (super.noSuchMethod(Invocation.getter(#marginBottom), returnValue: 0)
- as int);
- @override
- _i6.BufferLine get currentLine =>
- (super.noSuchMethod(Invocation.getter(#currentLine),
- returnValue: _FakeBufferLine_4()) as _i6.BufferLine);
- @override
- int get height =>
- (super.noSuchMethod(Invocation.getter(#height), returnValue: 0) as int);
- @override
- bool get hasScrollableRegion =>
- (super.noSuchMethod(Invocation.getter(#hasScrollableRegion),
- returnValue: false) as bool);
- @override
- bool get isInScrollableRegion =>
- (super.noSuchMethod(Invocation.getter(#isInScrollableRegion),
- returnValue: false) as bool);
- @override
- void write(String? text) =>
- super.noSuchMethod(Invocation.method(#write, [text]),
- returnValueForMissingStub: null);
- @override
- void writeChar(int? codePoint) =>
- super.noSuchMethod(Invocation.method(#writeChar, [codePoint]),
- returnValueForMissingStub: null);
- @override
- _i6.BufferLine getViewLine(int? index) =>
- (super.noSuchMethod(Invocation.method(#getViewLine, [index]),
- returnValue: _FakeBufferLine_4()) as _i6.BufferLine);
- @override
- int convertViewLineToRawLine(int? viewLine) => (super.noSuchMethod(
- Invocation.method(#convertViewLineToRawLine, [viewLine]),
- returnValue: 0) as int);
- @override
- int convertRawLineToViewLine(int? rawLine) => (super.noSuchMethod(
- Invocation.method(#convertRawLineToViewLine, [rawLine]),
- returnValue: 0) as int);
- @override
- void newLine() => super.noSuchMethod(Invocation.method(#newLine, []),
- returnValueForMissingStub: null);
- @override
- void carriageReturn() =>
- super.noSuchMethod(Invocation.method(#carriageReturn, []),
- returnValueForMissingStub: null);
- @override
- void backspace() => super.noSuchMethod(Invocation.method(#backspace, []),
- returnValueForMissingStub: null);
- @override
- List<_i6.BufferLine> getVisibleLines() =>
- (super.noSuchMethod(Invocation.method(#getVisibleLines, []),
- returnValue: <_i6.BufferLine>[]) as List<_i6.BufferLine>);
- @override
- void eraseDisplayFromCursor() =>
- super.noSuchMethod(Invocation.method(#eraseDisplayFromCursor, []),
- returnValueForMissingStub: null);
- @override
- void eraseDisplayToCursor() =>
- super.noSuchMethod(Invocation.method(#eraseDisplayToCursor, []),
- returnValueForMissingStub: null);
- @override
- void eraseDisplay() =>
- super.noSuchMethod(Invocation.method(#eraseDisplay, []),
- returnValueForMissingStub: null);
- @override
- void eraseLineFromCursor() =>
- super.noSuchMethod(Invocation.method(#eraseLineFromCursor, []),
- returnValueForMissingStub: null);
- @override
- void eraseLineToCursor() =>
- super.noSuchMethod(Invocation.method(#eraseLineToCursor, []),
- returnValueForMissingStub: null);
- @override
- void eraseLine() => super.noSuchMethod(Invocation.method(#eraseLine, []),
- returnValueForMissingStub: null);
- @override
- void eraseCharacters(int? count) =>
- super.noSuchMethod(Invocation.method(#eraseCharacters, [count]),
- returnValueForMissingStub: null);
- @override
- _i7.ScrollRange getAreaScrollRange() =>
- (super.noSuchMethod(Invocation.method(#getAreaScrollRange, []),
- returnValue: _FakeScrollRange_5()) as _i7.ScrollRange);
- @override
- void areaScrollDown(int? lines) =>
- super.noSuchMethod(Invocation.method(#areaScrollDown, [lines]),
- returnValueForMissingStub: null);
- @override
- void areaScrollUp(int? lines) =>
- super.noSuchMethod(Invocation.method(#areaScrollUp, [lines]),
- returnValueForMissingStub: null);
- @override
- void index() => super.noSuchMethod(Invocation.method(#index, []),
- returnValueForMissingStub: null);
- @override
- void reverseIndex() =>
- super.noSuchMethod(Invocation.method(#reverseIndex, []),
- returnValueForMissingStub: null);
- @override
- void cursorGoForward() =>
- super.noSuchMethod(Invocation.method(#cursorGoForward, []),
- returnValueForMissingStub: null);
- @override
- void setCursorX(int? cursorX) =>
- super.noSuchMethod(Invocation.method(#setCursorX, [cursorX]),
- returnValueForMissingStub: null);
- @override
- void setCursorY(int? cursorY) =>
- super.noSuchMethod(Invocation.method(#setCursorY, [cursorY]),
- returnValueForMissingStub: null);
- @override
- void moveCursorX(int? offset) =>
- super.noSuchMethod(Invocation.method(#moveCursorX, [offset]),
- returnValueForMissingStub: null);
- @override
- void moveCursorY(int? offset) =>
- super.noSuchMethod(Invocation.method(#moveCursorY, [offset]),
- returnValueForMissingStub: null);
- @override
- void setPosition(int? cursorX, int? cursorY) =>
- super.noSuchMethod(Invocation.method(#setPosition, [cursorX, cursorY]),
- returnValueForMissingStub: null);
- @override
- void movePosition(int? offsetX, int? offsetY) =>
- super.noSuchMethod(Invocation.method(#movePosition, [offsetX, offsetY]),
- returnValueForMissingStub: null);
- @override
- void setScrollOffsetFromBottom(int? offsetFromBottom) => super.noSuchMethod(
- Invocation.method(#setScrollOffsetFromBottom, [offsetFromBottom]),
- returnValueForMissingStub: null);
- @override
- void setScrollOffsetFromTop(int? offsetFromTop) => super.noSuchMethod(
- Invocation.method(#setScrollOffsetFromTop, [offsetFromTop]),
- returnValueForMissingStub: null);
- @override
- void screenScrollUp(int? lines) =>
- super.noSuchMethod(Invocation.method(#screenScrollUp, [lines]),
- returnValueForMissingStub: null);
- @override
- void screenScrollDown(int? lines) =>
- super.noSuchMethod(Invocation.method(#screenScrollDown, [lines]),
- returnValueForMissingStub: null);
- @override
- void saveCursor() => super.noSuchMethod(Invocation.method(#saveCursor, []),
- returnValueForMissingStub: null);
- @override
- void restoreCursor() =>
- super.noSuchMethod(Invocation.method(#restoreCursor, []),
- returnValueForMissingStub: null);
- @override
- void setVerticalMargins(int? top, int? bottom) =>
- super.noSuchMethod(Invocation.method(#setVerticalMargins, [top, bottom]),
- returnValueForMissingStub: null);
- @override
- void resetVerticalMargins() =>
- super.noSuchMethod(Invocation.method(#resetVerticalMargins, []),
- returnValueForMissingStub: null);
- @override
- void deleteChars(int? count) =>
- super.noSuchMethod(Invocation.method(#deleteChars, [count]),
- returnValueForMissingStub: null);
- @override
- void clearScrollback() =>
- super.noSuchMethod(Invocation.method(#clearScrollback, []),
- returnValueForMissingStub: null);
- @override
- void clear() => super.noSuchMethod(Invocation.method(#clear, []),
- returnValueForMissingStub: null);
- @override
- void insertBlankCharacters(int? count) =>
- super.noSuchMethod(Invocation.method(#insertBlankCharacters, [count]),
- returnValueForMissingStub: null);
- @override
- void insertLines(int? count) =>
- super.noSuchMethod(Invocation.method(#insertLines, [count]),
- returnValueForMissingStub: null);
- @override
- void insertLine() => super.noSuchMethod(Invocation.method(#insertLine, []),
- returnValueForMissingStub: null);
- @override
- void deleteLines(int? count) =>
- super.noSuchMethod(Invocation.method(#deleteLines, [count]),
- returnValueForMissingStub: null);
- @override
- void deleteLine() => super.noSuchMethod(Invocation.method(#deleteLine, []),
- returnValueForMissingStub: null);
- @override
- void resize(int? oldWidth, int? oldHeight, int? newWidth, int? newHeight) =>
- super.noSuchMethod(
- Invocation.method(
- #resize, [oldWidth, oldHeight, newWidth, newHeight]),
- returnValueForMissingStub: null);
- @override
- dynamic adjustSavedCursor(int? dx, int? dy) =>
- super.noSuchMethod(Invocation.method(#adjustSavedCursor, [dx, dy]));
- @override
- String toString() => super.toString();
- }
- /// A class which mocks [TerminalSearchTestCircularList].
- ///
- /// See the documentation for Mockito's code generation for more information.
- class MockTerminalSearchTestCircularList extends _i1.Mock
- implements _i9.TerminalSearchTestCircularList {
- MockTerminalSearchTestCircularList() {
- _i1.throwOnMissingStub(this);
- }
- @override
- int get maxLength =>
- (super.noSuchMethod(Invocation.getter(#maxLength), returnValue: 0)
- as int);
- @override
- set maxLength(int? value) =>
- super.noSuchMethod(Invocation.setter(#maxLength, value),
- returnValueForMissingStub: null);
- @override
- int get length =>
- (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int);
- @override
- set length(int? value) =>
- super.noSuchMethod(Invocation.setter(#length, value),
- returnValueForMissingStub: null);
- @override
- bool get isFull =>
- (super.noSuchMethod(Invocation.getter(#isFull), returnValue: false)
- as bool);
- @override
- void forEach(void Function(_i6.BufferLine)? callback) =>
- super.noSuchMethod(Invocation.method(#forEach, [callback]),
- returnValueForMissingStub: null);
- @override
- _i6.BufferLine operator [](int? index) =>
- (super.noSuchMethod(Invocation.method(#[], [index]),
- returnValue: _FakeBufferLine_4()) as _i6.BufferLine);
- @override
- void operator []=(int? index, _i6.BufferLine? value) =>
- super.noSuchMethod(Invocation.method(#[]=, [index, value]),
- returnValueForMissingStub: null);
- @override
- void clear() => super.noSuchMethod(Invocation.method(#clear, []),
- returnValueForMissingStub: null);
- @override
- void pushAll(Iterable<_i6.BufferLine>? items) =>
- super.noSuchMethod(Invocation.method(#pushAll, [items]),
- returnValueForMissingStub: null);
- @override
- void push(_i6.BufferLine? value) =>
- super.noSuchMethod(Invocation.method(#push, [value]),
- returnValueForMissingStub: null);
- @override
- _i6.BufferLine pop() => (super.noSuchMethod(Invocation.method(#pop, []),
- returnValue: _FakeBufferLine_4()) as _i6.BufferLine);
- @override
- void remove(int? index, [int? count = 1]) =>
- super.noSuchMethod(Invocation.method(#remove, [index, count]),
- returnValueForMissingStub: null);
- @override
- void insert(int? index, _i6.BufferLine? item) =>
- super.noSuchMethod(Invocation.method(#insert, [index, item]),
- returnValueForMissingStub: null);
- @override
- void insertAll(int? index, List<_i6.BufferLine>? items) =>
- super.noSuchMethod(Invocation.method(#insertAll, [index, items]),
- returnValueForMissingStub: null);
- @override
- void trimStart(int? count) =>
- super.noSuchMethod(Invocation.method(#trimStart, [count]),
- returnValueForMissingStub: null);
- @override
- void shiftElements(int? start, int? count, int? offset) => super.noSuchMethod(
- Invocation.method(#shiftElements, [start, count, offset]),
- returnValueForMissingStub: null);
- @override
- void replaceWith(List<_i6.BufferLine>? replacement) =>
- super.noSuchMethod(Invocation.method(#replaceWith, [replacement]),
- returnValueForMissingStub: null);
- @override
- List<_i6.BufferLine> toList() =>
- (super.noSuchMethod(Invocation.method(#toList, []),
- returnValue: <_i6.BufferLine>[]) as List<_i6.BufferLine>);
- @override
- String toString() => super.toString();
- }
- /// A class which mocks [BufferLine].
- ///
- /// See the documentation for Mockito's code generation for more information.
- class MockBufferLine extends _i1.Mock implements _i6.BufferLine {
- MockBufferLine() {
- _i1.throwOnMissingStub(this);
- }
- @override
- _i6.BufferLineData get data => (super.noSuchMethod(Invocation.getter(#data),
- returnValue: _FakeBufferLineData_6()) as _i6.BufferLineData);
- @override
- bool get isWrapped =>
- (super.noSuchMethod(Invocation.getter(#isWrapped), returnValue: false)
- as bool);
- @override
- set isWrapped(bool? value) =>
- super.noSuchMethod(Invocation.setter(#isWrapped, value),
- returnValueForMissingStub: null);
- @override
- bool get hasCachedSearchString =>
- (super.noSuchMethod(Invocation.getter(#hasCachedSearchString),
- returnValue: false) as bool);
- @override
- void markTagAsNonDirty(String? tag) =>
- super.noSuchMethod(Invocation.method(#markTagAsNonDirty, [tag]),
- returnValueForMissingStub: null);
- @override
- bool isTagDirty(String? tag) =>
- (super.noSuchMethod(Invocation.method(#isTagDirty, [tag]),
- returnValue: false) as bool);
- @override
- void ensure(int? length) =>
- super.noSuchMethod(Invocation.method(#ensure, [length]),
- returnValueForMissingStub: null);
- @override
- void insert(int? index) =>
- super.noSuchMethod(Invocation.method(#insert, [index]),
- returnValueForMissingStub: null);
- @override
- void insertN(int? index, int? count) =>
- super.noSuchMethod(Invocation.method(#insertN, [index, count]),
- returnValueForMissingStub: null);
- @override
- void removeN(int? index, int? count) =>
- super.noSuchMethod(Invocation.method(#removeN, [index, count]),
- returnValueForMissingStub: null);
- @override
- void clear() => super.noSuchMethod(Invocation.method(#clear, []),
- returnValueForMissingStub: null);
- @override
- void erase(_i10.Cursor? cursor, int? start, int? end,
- [bool? resetIsWrapped = false]) =>
- super.noSuchMethod(
- Invocation.method(#erase, [cursor, start, end, resetIsWrapped]),
- returnValueForMissingStub: null);
- @override
- void cellClear(int? index) =>
- super.noSuchMethod(Invocation.method(#cellClear, [index]),
- returnValueForMissingStub: null);
- @override
- void cellInitialize(int? index,
- {int? content, int? width, _i10.Cursor? cursor}) =>
- super.noSuchMethod(
- Invocation.method(#cellInitialize, [index],
- {#content: content, #width: width, #cursor: cursor}),
- returnValueForMissingStub: null);
- @override
- bool cellHasContent(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellHasContent, [index]),
- returnValue: false) as bool);
- @override
- int cellGetContent(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellGetContent, [index]),
- returnValue: 0) as int);
- @override
- void cellSetContent(int? index, int? content) =>
- super.noSuchMethod(Invocation.method(#cellSetContent, [index, content]),
- returnValueForMissingStub: null);
- @override
- int cellGetFgColor(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellGetFgColor, [index]),
- returnValue: 0) as int);
- @override
- void cellSetFgColor(int? index, int? color) =>
- super.noSuchMethod(Invocation.method(#cellSetFgColor, [index, color]),
- returnValueForMissingStub: null);
- @override
- int cellGetBgColor(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellGetBgColor, [index]),
- returnValue: 0) as int);
- @override
- void cellSetBgColor(int? index, int? color) =>
- super.noSuchMethod(Invocation.method(#cellSetBgColor, [index, color]),
- returnValueForMissingStub: null);
- @override
- int cellGetFlags(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellGetFlags, [index]),
- returnValue: 0) as int);
- @override
- void cellSetFlags(int? index, int? flags) =>
- super.noSuchMethod(Invocation.method(#cellSetFlags, [index, flags]),
- returnValueForMissingStub: null);
- @override
- int cellGetWidth(int? index) =>
- (super.noSuchMethod(Invocation.method(#cellGetWidth, [index]),
- returnValue: 0) as int);
- @override
- void cellSetWidth(int? index, int? width) =>
- super.noSuchMethod(Invocation.method(#cellSetWidth, [index, width]),
- returnValueForMissingStub: null);
- @override
- void cellClearFlags(int? index) =>
- super.noSuchMethod(Invocation.method(#cellClearFlags, [index]),
- returnValueForMissingStub: null);
- @override
- bool cellHasFlag(int? index, int? flag) =>
- (super.noSuchMethod(Invocation.method(#cellHasFlag, [index, flag]),
- returnValue: false) as bool);
- @override
- void cellSetFlag(int? index, int? flag) =>
- super.noSuchMethod(Invocation.method(#cellSetFlag, [index, flag]),
- returnValueForMissingStub: null);
- @override
- void cellErase(int? index, _i10.Cursor? cursor) =>
- super.noSuchMethod(Invocation.method(#cellErase, [index, cursor]),
- returnValueForMissingStub: null);
- @override
- int getTrimmedLength([int? cols]) =>
- (super.noSuchMethod(Invocation.method(#getTrimmedLength, [cols]),
- returnValue: 0) as int);
- @override
- void copyCellsFrom(_i6.BufferLine? src, int? srcCol, int? dstCol, int? len) =>
- super.noSuchMethod(
- Invocation.method(#copyCellsFrom, [src, srcCol, dstCol, len]),
- returnValueForMissingStub: null);
- @override
- void removeRange(int? start, int? end) =>
- super.noSuchMethod(Invocation.method(#removeRange, [start, end]),
- returnValueForMissingStub: null);
- @override
- void clearRange(int? start, int? end) =>
- super.noSuchMethod(Invocation.method(#clearRange, [start, end]),
- returnValueForMissingStub: null);
- @override
- String toDebugString(int? cols) =>
- (super.noSuchMethod(Invocation.method(#toDebugString, [cols]),
- returnValue: '') as String);
- @override
- String toSearchString(int? cols) =>
- (super.noSuchMethod(Invocation.method(#toSearchString, [cols]),
- returnValue: '') as String);
- @override
- String toString() => super.toString();
- }
|