Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
KenWilliamson committed Oct 27, 2019
1 parent 7cc102c commit c72f3ef
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 49 deletions.
114 changes: 65 additions & 49 deletions coverage.out
Original file line number Diff line number Diff line change
@@ -1,53 +1,4 @@
mode: set
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:100.35,102.2 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:105.54,111.2 5 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:114.70,116.2 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:119.76,122.31 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:139.2,139.16 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:122.31,126.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:126.8,126.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:126.38,130.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:130.8,130.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:130.38,134.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:134.8,134.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:134.38,138.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:143.67,145.31 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:158.2,158.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:145.31,148.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:148.8,148.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:148.38,151.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:151.8,151.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:151.38,154.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:154.8,154.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:154.38,157.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:162.69,165.21 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:178.2,178.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:165.21,168.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:168.8,168.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:168.28,171.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:171.8,171.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:171.28,174.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:174.8,174.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:174.28,177.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:182.74,184.22 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:197.2,197.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:184.22,187.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:187.8,187.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:187.29,190.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:190.8,190.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:190.29,193.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:193.8,193.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:193.29,196.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:201.67,203.31 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:216.2,216.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:203.31,206.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:206.8,206.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:206.38,209.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:209.8,209.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:209.38,212.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:212.8,212.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:212.38,215.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:220.33,222.2 1 1
github.com/Ulbora/dbinterface_mysql/mysqlTx.go:14.74,19.16 4 1
github.com/Ulbora/dbinterface_mysql/mysqlTx.go:31.2,31.20 1 1
github.com/Ulbora/dbinterface_mysql/mysqlTx.go:19.16,21.3 1 1
Expand Down Expand Up @@ -198,3 +149,68 @@ github.com/Ulbora/dbinterface_mysql/mysqldb.go:231.29,234.16 3 1
github.com/Ulbora/dbinterface_mysql/mysqldb.go:239.2,239.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldb.go:234.16,236.3 1 0
github.com/Ulbora/dbinterface_mysql/mysqldb.go:236.8,238.3 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:116.35,118.2 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:121.54,127.2 5 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:130.70,132.2 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:135.76,138.31 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:155.2,155.16 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:138.31,142.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:142.8,142.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:142.38,146.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:146.8,146.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:146.38,150.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:150.8,150.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:150.38,154.3 3 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:159.67,161.31 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:174.2,174.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:161.31,164.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:164.8,164.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:164.38,167.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:167.8,167.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:167.38,170.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:170.8,170.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:170.38,173.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:178.69,181.21 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:206.2,206.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:181.21,184.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:184.8,184.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:184.28,187.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:187.8,187.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:187.28,190.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:190.8,190.28 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:190.28,193.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:193.8,193.28 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:193.28,196.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:196.8,196.28 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:196.28,199.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:199.8,199.28 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:199.28,202.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:202.8,202.28 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:202.28,205.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:210.74,212.22 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:237.2,237.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:212.22,215.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:215.8,215.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:215.29,218.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:218.8,218.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:218.29,221.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:221.8,221.29 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:221.29,224.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:224.8,224.29 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:224.29,227.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:227.8,227.29 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:227.29,230.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:230.8,230.29 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:230.29,233.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:233.8,233.29 1 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:233.29,236.3 2 0
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:241.67,243.31 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:256.2,256.12 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:243.31,246.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:246.8,246.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:246.38,249.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:249.8,249.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:249.38,252.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:252.8,252.38 1 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:252.38,255.3 2 1
github.com/Ulbora/dbinterface_mysql/mysqldbMock.go:260.33,262.2 1 1
40 changes: 40 additions & 0 deletions mysqldbMock.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,35 @@ type MyDBMock struct {
mockRow2Used bool
mockRow3Used bool
mockRow4Used bool
mockRow5Used bool
mockRow6Used bool
mockRow7Used bool
mockRow8Used bool
MockRow1 *di.DbRow
MockRow2 *di.DbRow
MockRow3 *di.DbRow
MockRow4 *di.DbRow
MockRow5 *di.DbRow
MockRow6 *di.DbRow
MockRow7 *di.DbRow
MockRow8 *di.DbRow

mockRows1Used bool
mockRows2Used bool
mockRows3Used bool
mockRows4Used bool
mockRows5Used bool
mockRows6Used bool
mockRows7Used bool
mockRows8Used bool
MockRows1 *di.DbRows
MockRows2 *di.DbRows
MockRows3 *di.DbRows
MockRows4 *di.DbRows
MockRows5 *di.DbRows
MockRows6 *di.DbRows
MockRows7 *di.DbRows
MockRows8 *di.DbRows
}

//Connect Connect
Expand Down Expand Up @@ -174,6 +190,18 @@ func (m *MyDBMock) Get(query string, args ...interface{}) *di.DbRow {
} else if !m.mockRow4Used {
m.mockRow4Used = true
rtn = m.MockRow4
} else if !m.mockRow5Used {
m.mockRow5Used = true
rtn = m.MockRow5
} else if !m.mockRow6Used {
m.mockRow6Used = true
rtn = m.MockRow6
} else if !m.mockRow7Used {
m.mockRow7Used = true
rtn = m.MockRow7
} else if !m.mockRow8Used {
m.mockRow8Used = true
rtn = m.MockRow8
}
return rtn
}
Expand All @@ -193,6 +221,18 @@ func (m *MyDBMock) GetList(query string, args ...interface{}) *di.DbRows {
} else if !m.mockRows4Used {
m.mockRows4Used = true
rtn = m.MockRows4
} else if !m.mockRows5Used {
m.mockRows5Used = true
rtn = m.MockRows5
} else if !m.mockRows6Used {
m.mockRows6Used = true
rtn = m.MockRows6
} else if !m.mockRows7Used {
m.mockRows7Used = true
rtn = m.MockRows7
} else if !m.mockRows8Used {
m.mockRows8Used = true
rtn = m.MockRows8
}
return rtn
}
Expand Down

0 comments on commit c72f3ef

Please sign in to comment.