Skip to content

Commit

Permalink
Migrated all references from gitlab.com/pshirali to github.com/pshirali.
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirali committed Sep 17, 2018
1 parent e092f09 commit 802b2fc
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
This repo contains a presentation and code samples from a talk I gave
at Golang Bangalore Meetup 36 on September 8th 2018.

*The slides can be viewed online [here](https://pshirali.gitlab.io/testing-in-go)*
*The slides can be viewed online [here](https://pshirali.github.io/testing-in-go)*

### View this presentation offline

If you have a Go environment, you can run the following to view the slides offline

```
git clone https://gitlab.com/pshirali/testing-in-go
git clone https://github.com/pshirali/testing-in-go
go get -u -v golang.org/x/tools/cmd/present
cd testing-in-go
present -notes
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions public/index.html → index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion samples/ex1/testOutput_normal
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex1 0.006s
ok github.com/pshirali/testing-in-go/samples/ex1 0.006s
2 changes: 1 addition & 1 deletion samples/ex1/testOutput_verbose
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--- PASS: TestExample (0.00s)
sample_test.go:6: Hello World!
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex1 0.006s
ok github.com/pshirali/testing-in-go/samples/ex1 0.006s
2 changes: 1 addition & 1 deletion samples/ex2/adder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package adder_test

import (
"gitlab.com/pshirali/testing-in-go/samples/ex2"
"github.com/pshirali/testing-in-go/samples/ex2"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/ex2/testOutput_tables_singletest
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
adder_test.go:20: -------------------- Adding: [-1 -2]
adder_test.go:20: -------------------- Adding: [1 2 3]
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex2 0.007s
ok github.com/pshirali/testing-in-go/samples/ex2 0.007s
2 changes: 1 addition & 1 deletion samples/ex2/testOutput_tables_subtest
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
--- PASS: TestAdderUsingSubtests/Positive (0.00s)
adder_test.go:45: -------------------- Adding: [1 2 3]
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex2 0.007s
ok github.com/pshirali/testing-in-go/samples/ex2 0.007s
4 changes: 2 additions & 2 deletions samples/ex3/builder_dump/builder_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package main
// AVOID: '. <import-path' in your code.
import (
"fmt"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/counter"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/test_suite"
. "github.com/pshirali/testing-in-go/samples/ex3/counter"
. "github.com/pshirali/testing-in-go/samples/ex3/test_suite"
)

func dumpInstances(count int, counterBuilder func() Counter) {
Expand Down
4 changes: 2 additions & 2 deletions samples/ex3/safe_counter/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package safe_counter

import (
. "gitlab.com/pshirali/testing-in-go/samples/ex3/counter"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
. "github.com/pshirali/testing-in-go/samples/ex3/counter"
. "github.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/ex3/test_normal/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package test_normal
// NOTE: The dot import has been used here to condense the data on the slides.
// AVOID: '. <import-path' in your code.
import (
. "gitlab.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
. "github.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
"testing"
)

Expand Down
6 changes: 3 additions & 3 deletions samples/ex3/test_suite/counter_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package test_suite
import (
"flag"
"fmt"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/counter"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/safe_counter"
. "gitlab.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
. "github.com/pshirali/testing-in-go/samples/ex3/counter"
. "github.com/pshirali/testing-in-go/samples/ex3/safe_counter"
. "github.com/pshirali/testing-in-go/samples/ex3/unsafe_counter"
"reflect"
"strings"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion samples/ex3/test_suite/suite_debug
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ samples/ex3/test_suite $> go test -d
===== Test2 : 0xc0000a6700 *testing.T
\_ Counter : 0xc000070308 *unsafe_counter.unsafeCounter
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
ok github.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
2 changes: 1 addition & 1 deletion samples/ex3/test_suite/suite_output
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ samples/ex3/test_suite $> go test -v
--- PASS: TestCounterSuite/UnsafeCounter/TestCounterIncrementIncreasesValue (0.00s)
--- PASS: TestCounterSuite/UnsafeCounter/TestCounterIncrementReset (0.00s)
PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
ok github.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
2 changes: 1 addition & 1 deletion samples/ex3/test_suite/suite_wrap
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ samples/ex3/test_suite $> go test -w
<<< [ RunAllTests -After- ] <<<

PASS
ok gitlab.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
ok github.com/pshirali/testing-in-go/samples/ex3/test_suite 0.007s
2 changes: 1 addition & 1 deletion testing-in-go.slide
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Tags: golang, patterns, testing, unittest, helpers, fixtures, suite
Praveen G Shirali
[email protected]

https://gitlab.com/pshirali/testing-in-go
https://github.com/pshirali/testing-in-go



Expand Down

0 comments on commit 802b2fc

Please sign in to comment.