Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Fix #656 "gotests" when generates test for current function #657

Merged

Commits on Nov 29, 2016

  1. Fix "gotests" when generates test for current function

    Issue:
    "Generate unit tests for current function" fails with recent
    vscode-go version. This due to the fact that the GoDocumentSymbolProvider
    returns now also the receiverType in the name function.
    example: before "DecodeJSON", after (*Volume).DecodeJSON
    gotests bin is not able to understand this string with the option -only
    since it is not a valid regular expression.
    
    Fixes: microsoft#656
    check is the function name contains a ".", if yes: returns only the
    second part of the name that is corresponding to the function name
    without the receiverType.
    clamoriniere committed Nov 29, 2016
    Configuration menu
    Copy the full SHA
    db88638 View commit details
    Browse the repository at this point in the history