question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to associate `_test.go` with `Golang` icon

See original GitHub issue

I’ve changed the icons for javascript test files like so: image I would like to do the same for golang. However, the extension gets confused because _test.go is not really a file extension.

Following code shows what my settings.json config looks like now:

    "vsicons.associations.files": [
        { "icon": "asciidoc", "extensions": ["test.js"], "format": "svg", "extends":"testjs" },
        { "icon": "asciidoc", "extensions": ["_test.go"], "format": "svg", "extends":"go" },
    ],

image

Thanks, Ioan

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
KingDarBojacommented, Jun 25, 2020

Closing as resolved.

1reaction
JimiCcommented, Apr 14, 2020

Those two attributes are used in combination to produce multiple file extensions. Again, it’s not the glob you think it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Write Unit Tests in Go - DigitalOcean
In this step, you will write your first test in Go. Writing tests in Go requires a test file link, and this test...
Read more >
Testing in Go by example: Part 2 - SmartyStreets
You've already learned how to execute tests in Go for a single package. $ go test. There's a bit more to it, though....
Read more >
Using the Testify Go module for Unit Tests in Golang - JFrog
Learn about using Testify to write unit tests in Golang that are easy to read and maintain. We'll show some best practices for...
Read more >
testing - Go Packages
Package testing provides support for automated testing of Go packages. It is intended to be used in concert with the "go test" command,...
Read more >
Get started with Go testing | InfoWorld
Modern programming languages include native tools for building and running unit tests on code bases. The Go language has its own such ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found