Skip to content

Omit package for types in current package #150

@bep

Description

@bep

I really like it when I can just paste the output of got into my qt.DeepEquals expect. But if would be even better if the package names would be correct for types in the current package (which, when doing unit tests, isn't uncommon). One example from recently:

 page.PageMatcherParamsConfig{
                  Params: {
                      "foo": "bar",
                  },
                  Target: page.PageMatcher{Path:"", Kind:"page", Lang:"", Environment:""},
}

This test is run from package page. So, after I paste the above I need to remove the page. package "prefix".

This is not a big issue, but it would make quicktest even nicer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions