File: symbol_fixture_suite_test.go

package info (click to toggle)
golang-github-onsi-ginkgo-v2 2.27.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,340 kB
  • sloc: javascript: 65; makefile: 23; sh: 14
file content (21 lines) | stat: -rw-r--r-- 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package symbol_fixture_test

import (
	"fmt"
	"os/exec"
	"testing"

	. "github.com/onsi/ginkgo/v2"
	. "github.com/onsi/gomega"
)

func TestSymbolFixture(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "SymbolFixture Suite")
}

var _ = It("prints out its symbols", func() {
	cmd := exec.Command("go", "tool", "nm", "symbol_fixture.test")
	output, _ := cmd.CombinedOutput()
	fmt.Println(string(output))
})