Skip to content

Auto mock does not ignore comments #23

Description

@tomek-r

This is a Bug Report

Description

  • What went wrong?
    Auto mock generates wrong mocks when comments are placed before function definition.

Similar or dependent issues:

  • No

Additional Data

Example code/file:

' Calls given function with given number of arguments in a specific context. Compare apply in JavaScript.
' @example
' function adder(arg1, arg2, arg3, arg4) as Integer
'   return m.base + arg1 + arg2 + arg3 + arg4
' end function
' funcionCall(adder, [1, 2, 3, 4], { base: 1 })
' @param {Function|Invalid} func
' @param {Dynamic[]} [args=[]]
' @param {Object} [context=Invalid]
' @returns {Dynamic}
function functionCall(func as Dynamic, args = [] as Object, context = Invalid as Object) as Dynamic

The aut mock will generate function adder(arg1, arg2, arg3, arg4) as Integer instead of function functionCall(func as Dynamic, args = [] as Object, context = Invalid as Object) as Dynamic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions