Module Expr Str Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr CompareIs NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr IfExp CompareIs AttributeLoad NameLoad attr NameLoad Num AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Assign NameStore IfExp CompareIs NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr Num BinOpSub NameLoad Num Assign NameStore IfExp CompareIs NameLoad NameLoad BinOpAdd NameLoad Num Call NameLoad BinOpAdd NameLoad Num Assign NameStore IfExp CompareIs NameLoad Num Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Yield SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore BoolOpOr NameLoad TupleLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body If BoolOpOr CompareEq AttributeLoad NameLoad attr ListLoad Str UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Return Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str decorator_list
N/A N/A Vroom buffer handling. N/A vroom.controls N/A vroom.test Manager N/A object N/A N/A Manages the vim buffers. __init__ N/A N/A self vim N/A N/A N/A N/A self vim vim N/A N/A N/A self Unload N/A Unload N/A N/A self N/A N/A N/A Unload the current buffer. N/A N/A self _loaded False N/A N/A self _buffer None N/A N/A self _data N/A N/A N/A self _line None N/A N/A self _last_range None N/A Load N/A N/A self buff N/A N/A N/A Loads the requested buffer.

    If no buffer is loaded nor requested, the active buffer is used.
    Otherwise if no buffer is requested, the current buffer is used.
    Otherwise the requested buffer is loaded.

    Args:
      buff: The buffer to load.
     N/A N/A N/A self _loaded N/A buff None N/A N/A N/A N/A N/A self Unload N/A N/A self _data N/A N/A N/A self vim GetBufferLines buff N/A N/A self _buffer buff N/A N/A self _loaded True N/A View N/A N/A self start end N/A N/A N/A A generator over given lines in a buffer.

    When vim messages are viewed in this fashion, the messenger object will be
    notified that those messages were not unexpected.

    Args:
      start: The beginning of the range.
      end: A function to get the end of the range.
    Yields:
      An iterable over the range.
    Raises:
      NotEnoughOutput: when the range exceeds the buffer.
     N/A N/A self _line N/A N/A N/A self _line None -1 N/A self _line N/A N/A start N/A N/A N/A vroom controls SPECIAL_RANGE CURRENT_LINE N/A N/A start N/A N/A N/A N/A self vim GetCurrentLine 1 N/A N/A start N/A N/A start None N/A N/A self _line 1 N/A start 1 N/A end N/A N/A end None N/A start 1 N/A end N/A start 1 N/A end N/A N/A end 0 N/A len N/A self _data end N/A N/A self _last_range N/A start end N/A i N/A range start end N/A N/A N/A self _line i N/A N/A i N/A len N/A self _data N/A N/A N/A N/A N/A self _data N/A i N/A N/A N/A NotEnoughOutput N/A N/A self GetContext N/A Verify N/A N/A self desired buffer range mode N/A None None None N/A N/A Checks the contents of a vim buffer.

    Checks that all lines in the given range in the loaded buffer match the
    given line under the given mode.

    Args:
      desired: The line that everything should look like.
      buffer: The buffer to load.
      range: The range of lines to check.
      mode: The mode to match in.
    Raises:
      WrongOutput: if the output is wrong.
     N/A N/A N/A self Load buffer N/A N/A start end N/A range N/A None None N/A actual N/A N/A self View start end N/A N/A N/A N/A N/A N/A vroom test Matches desired mode actual N/A N/A N/A WrongOutput desired mode N/A N/A self GetContext N/A EnsureAtEnd N/A N/A self buffer N/A N/A N/A Ensures that the test has verified to the end of the loaded buffer.

    Args:
      buffer: The buffer to load.
    Raises:
      BadOutput: If the buffer is not in a state to have its end checked.
      WrongOutput: If the buffer is not at the end.
     N/A N/A N/A self Load buffer N/A N/A self _last_range N/A N/A len N/A self _data N/A len N/A self _data N/A N/A N/A self _line None N/A N/A N/A N/A N/A self _data N/A N/A N/A self _data N/A N/A N/A msg Misuse of @end: buffer has not been checked yet. N/A N/A BadOutput N/A N/A self GetContext msg N/A N/A N/A self _line N/A N/A len N/A self _data 1 N/A N/A N/A TooMuchOutput N/A N/A self GetContext N/A GetContext N/A N/A self N/A N/A N/A Information about what part of the buffer was being looked at.

    Invaluable in exceptions.

    Returns:
      Dict containing 'buffer', 'data', 'line', 'start', and 'end'.
     N/A N/A N/A N/A self _loaded N/A N/A self _last_range None N/A N/A None N/A N/A start end N/A self _last_range N/A N/A buffer data line start end N/A self _buffer N/A self _data N/A self _line start end N/A N/A BadOutput N/A N/A N/A vroom test Failure N/A N/A Raised when vim's output is not the expected output. N/A DESCRIPTION Output does not match expectation. __init__ N/A N/A self context message N/A None N/A N/A N/A self context context N/A N/A N/A N/A super BadOutput self __init__ N/A message N/A self DESCRIPTION N/A N/A WrongOutput N/A BadOutput N/A N/A Raised when a line fails to match the spec. __init__ N/A N/A self line mode context N/A N/A N/A Makes the exception.

    Args:
      line: The expected line.
      mode: The match mode.
      context: The buffer context.
     N/A N/A self context context N/A mode N/A mode N/A N/A vroom controls DEFAULT_MODE N/A msg N/A Expected "%s" in %s mode. N/A line mode N/A N/A N/A N/A super WrongOutput self __init__ context msg N/A N/A TooMuchOutput N/A BadOutput N/A N/A Raised when vim has more output than a vroom test wants. N/A DESCRIPTION Expected end of buffer. N/A NotEnoughOutput N/A BadOutput N/A N/A Raised when vim has less output than a vroom test wants. N/A DESCRIPTION Unexpected end of buffer. N/A