Skip to content

Commit eb4560a

Browse files
committed
go.llib.dev
1 parent 4e7e6dc commit eb4560a

File tree

164 files changed

+438
-451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+438
-451
lines changed

DSL.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
// For functions where 2 value is returned, and the second one is an error,
1616
// in order to avoid repetitive test cases in the `Then` I often define a `onSuccess` variable,
1717
// with a function that takes `testcase#variables` as well and test error return value there with `testcase#variables.T()`.
18-
//
1918
func (spec *Spec) Describe(subjectTopic string, specification sBlock, opts ...SpecOption) {
2019
spec.testingTB.Helper()
2120
opts = append([]SpecOption{Group(subjectTopic)}, opts...)

README.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// Package testcase is an opinionated testing framework.
22
//
3-
//
4-
//
53
// Repository + README:
6-
// https://github.com/adamluzsi/testcase
4+
// https://go.llib.dev/testcase
75
//
86
// Guide:
9-
// https://github.com/adamluzsi/testcase/blob/master/docs/README.md
10-
//
7+
// https://go.llib.dev/testcase/blob/master/docs/README.md
118
package testcase

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1818

1919
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)
20-
[![GoDoc](https://godoc.org/github.com/adamluzsi/testcase?status.png)](https://godoc.org/github.com/adamluzsi/testcase)
20+
[![GoDoc](https://godoc.org/go.llib.dev/testcase?status.png)](https://godoc.org/go.llib.dev/testcase)
2121
[![Build Status](https://travis-ci.org/adamluzsi/testcase.svg?branch=master)](https://travis-ci.org/adamluzsi/testcase)
22-
[![Go Report Card](https://goreportcard.com/badge/github.com/adamluzsi/testcase)](https://goreportcard.com/report/github.com/adamluzsi/testcase)
22+
[![Go Report Card](https://goreportcard.com/badge/go.llib.dev/testcase)](https://goreportcard.com/report/go.llib.dev/testcase)
2323
[![codecov](https://codecov.io/gh/adamluzsi/testcase/branch/master/graph/badge.svg)](https://codecov.io/gh/adamluzsi/testcase)
2424
# testcase
2525

@@ -68,15 +68,15 @@ then please consider reading the below-listed articles.
6868

6969
If you already use the framework, and you just won't pick an example,
7070
you can go directly to the API documentation that is kept in godoc format.
71-
- [godoc](https://godoc.org/github.com/adamluzsi/testcase)
72-
- [pkg.go.dev](https://pkg.go.dev/github.com/adamluzsi/testcase).
71+
- [godoc](https://godoc.org/go.llib.dev/testcase)
72+
- [pkg.go.dev](https://pkg.go.dev/go.llib.dev/testcase).
7373

7474
## Getting Started / Example
7575

7676
Examples kept in godoc format.
7777
Every exported functionality aims to have examples provided in the official documentation.
78-
- [pkg.go.dev](https://pkg.go.dev/github.com/adamluzsi/testcase#pkg-examples)
79-
- [godoc](https://godoc.org/github.com/adamluzsi/testcase#pkg-examples)
78+
- [pkg.go.dev](https://pkg.go.dev/go.llib.dev/testcase#pkg-examples)
79+
- [godoc](https://godoc.org/go.llib.dev/testcase#pkg-examples)
8080

8181
A Basic examples:
8282

@@ -106,7 +106,7 @@ package main
106106
import (
107107
"testing"
108108

109-
"github.com/adamluzsi/testcase"
109+
"go.llib.dev/testcase"
110110
)
111111

112112
func TestMyFunc(t *testing.T) {
@@ -191,7 +191,7 @@ import (
191191
"my/project/mypkg"
192192

193193

194-
"github.com/adamluzsi/testcase"
194+
"go.llib.dev/testcase"
195195

196196
. "my/project/testing/pkg"
197197
)

Race_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/adamluzsi/testcase/sandbox"
14+
"go.llib.dev/testcase/sandbox"
1515

16-
"github.com/adamluzsi/testcase"
17-
"github.com/adamluzsi/testcase/assert"
18-
"github.com/adamluzsi/testcase/internal/doubles"
16+
"go.llib.dev/testcase"
17+
"go.llib.dev/testcase/assert"
18+
"go.llib.dev/testcase/internal/doubles"
1919
)
2020

2121
func TestRace(t *testing.T) {

Sandbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package testcase
22

33
import (
4-
"github.com/adamluzsi/testcase/sandbox"
4+
"go.llib.dev/testcase/sandbox"
55
)
66

77
func Sandbox(fn func()) sandbox.RunOutcome {

Sandbox_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"runtime"
66
"testing"
77

8-
"github.com/adamluzsi/testcase"
9-
"github.com/adamluzsi/testcase/assert"
10-
"github.com/adamluzsi/testcase/internal/doubles"
11-
"github.com/adamluzsi/testcase/random"
12-
"github.com/adamluzsi/testcase/sandbox"
8+
"go.llib.dev/testcase"
9+
"go.llib.dev/testcase/assert"
10+
"go.llib.dev/testcase/internal/doubles"
11+
"go.llib.dev/testcase/random"
12+
"go.llib.dev/testcase/sandbox"
1313
)
1414

1515
func ExampleSandbox() {

Spec.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"strings"
88
"testing"
99

10-
"github.com/adamluzsi/testcase/assert"
11-
"github.com/adamluzsi/testcase/internal"
12-
"github.com/adamluzsi/testcase/internal/caller"
13-
"github.com/adamluzsi/testcase/internal/teardown"
10+
"go.llib.dev/testcase/assert"
11+
"go.llib.dev/testcase/internal"
12+
"go.llib.dev/testcase/internal/caller"
13+
"go.llib.dev/testcase/internal/teardown"
1414
)
1515

1616
// NewSpec create new Spec struct that is ready for usage.
@@ -28,9 +28,6 @@ func NewSpec(tb testing.TB, opts ...SpecOption) *Spec {
2828
s.sync = true
2929
}
3030
applyGlobal(s)
31-
s.Before(func(t *T) {
32-
t.Log("WARNING", "please migrate to use the go.llib.dev/testcase import path instead of the github.com")
33-
})
3431
return s
3532
}
3633

Spec_bc_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/adamluzsi/testcase/assert"
8-
"github.com/adamluzsi/testcase/internal/doubles"
9-
"github.com/adamluzsi/testcase/sandbox"
7+
"go.llib.dev/testcase/assert"
8+
"go.llib.dev/testcase/internal/doubles"
9+
"go.llib.dev/testcase/sandbox"
1010
)
1111

1212
func TestSpec_FriendlyVarNotDefined(t *testing.T) {

Spec_output_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"github.com/adamluzsi/testcase"
7+
"go.llib.dev/testcase"
88
)
99

1010
func TestOutput(t *testing.T) {

Spec_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/adamluzsi/testcase/assert"
15-
"github.com/adamluzsi/testcase/internal/doubles"
16-
"github.com/adamluzsi/testcase/internal/spechelper"
17-
"github.com/adamluzsi/testcase/random"
18-
"github.com/adamluzsi/testcase/sandbox"
14+
"go.llib.dev/testcase/assert"
15+
"go.llib.dev/testcase/internal/doubles"
16+
"go.llib.dev/testcase/internal/spechelper"
17+
"go.llib.dev/testcase/random"
18+
"go.llib.dev/testcase/sandbox"
1919

20-
"github.com/adamluzsi/testcase"
20+
"go.llib.dev/testcase"
2121
)
2222

2323
func TestSpec_DSL(t *testing.T) {

0 commit comments

Comments
 (0)