File: example_test.go

package info (click to toggle)
golang-github-matryer-is 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 204 kB
  • sloc: makefile: 2
file content (33 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package example

// CAUTION: DO NOT EDIT
// Tests in this project rely on specific lines numbers
// throughout this file.

import (
	"testing"

	"github.com/matryer/is"
)

func TestSomething(t *testing.T) {
	// this comment will be extracted
}

func TestSomethingElse(t *testing.T) {
	is := is.New(t)
	a, b := 1, 2
	getB := func() int {
		return b
	}
	is.True(a == getB()) // should be the same
}

func TestSomethingElseTpp(t *testing.T) {
	is := is.New(t)
	a, b := 1, 2
	getB := func() int {
		return b
	}
	is.True(a == getB())
}