Skip to content

Commit

Permalink
Vet: Fix example names to match code
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Jun 23, 2016
1 parent ff00a06 commit 4f254e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var mySession = &SessionMock{}

func ExampleIteratorScanMap() {
func ExampleIterator_ScanMap() {
var iteratorMock = &IteratorMock{}

iteratorMock.When("ScanMap", mock.Any).Call(func(m map[string]interface{}) bool {
Expand Down Expand Up @@ -46,7 +46,7 @@ func ExampleIteratorScanMap() {
// Output: id = 1, name = alex
}

func ExampleSessionBatch() {
func ExampleSession_Batch() {
var batchMock = &BatchMock{}

batchMock.When("Add", "insert into users (id, name) values (1, 'alex')", mock.Any).Return()
Expand All @@ -71,7 +71,7 @@ func ExampleSessionBatch() {
// Output: invalid
}

func ExampleSessionScanMapSlice() {
func ExampleSession_ScanMapSlice() {
var sessionMock = &SessionMock{}

const query = "select * from users"
Expand Down

0 comments on commit 4f254e1

Please sign in to comment.