@@ -244,7 +244,7 @@ type testCtx struct {
244244 cleanUp func ()
245245}
246246
247- func (c testCtx ) addRegistrations (t * testing.T ) {
247+ func (tc testCtx ) addRegistrations (t * testing.T ) {
248248 emailA := "mailto:" + emailARaw
249249 emailB := "mailto:" + emailBRaw
250250 emailC := "mailto:" + emailCRaw
@@ -304,17 +304,17 @@ func (c testCtx) addRegistrations(t *testing.T) {
304304
305305 // Add the four test registrations
306306 ctx := context .Background ()
307- regA , err = c .ssa .NewRegistration (ctx , regA )
307+ regA , err = tc .ssa .NewRegistration (ctx , regA )
308308 test .AssertNotError (t , err , "Couldn't store regA" )
309- regB , err = c .ssa .NewRegistration (ctx , regB )
309+ regB , err = tc .ssa .NewRegistration (ctx , regB )
310310 test .AssertNotError (t , err , "Couldn't store regB" )
311- regC , err = c .ssa .NewRegistration (ctx , regC )
311+ regC , err = tc .ssa .NewRegistration (ctx , regC )
312312 test .AssertNotError (t , err , "Couldn't store regC" )
313- regD , err = c .ssa .NewRegistration (ctx , regD )
313+ regD , err = tc .ssa .NewRegistration (ctx , regD )
314314 test .AssertNotError (t , err , "Couldn't store regD" )
315315}
316316
317- func (ctx testCtx ) addCertificates (t * testing.T ) {
317+ func (tc testCtx ) addCertificates (t * testing.T ) {
318318 serial1 := big .NewInt (1336 )
319319 serial1String := core .SerialToString (serial1 )
320320 serial2 := big .NewInt (1337 )
@@ -353,9 +353,9 @@ func (ctx testCtx) addCertificates(t *testing.T) {
353353 Expires : rawCertA .NotAfter ,
354354 DER : certDerA ,
355355 }
356- err := ctx .c .dbMap .Insert (certA )
356+ err := tc .c .dbMap .Insert (certA )
357357 test .AssertNotError (t , err , "Couldn't add certA" )
358- _ , err = ctx .c .dbMap .Exec (
358+ _ , err = tc .c .dbMap .Exec (
359359 "INSERT INTO issuedNames (reversedName, serial, notBefore) VALUES (?,?,0)" ,
360360 "com.example-a" ,
361361 serial1String ,
@@ -378,9 +378,9 @@ func (ctx testCtx) addCertificates(t *testing.T) {
378378 Expires : rawCertB .NotAfter ,
379379 DER : certDerB ,
380380 }
381- err = ctx .c .dbMap .Insert (certB )
381+ err = tc .c .dbMap .Insert (certB )
382382 test .AssertNotError (t , err , "Couldn't add certB" )
383- _ , err = ctx .c .dbMap .Exec (
383+ _ , err = tc .c .dbMap .Exec (
384384 "INSERT INTO issuedNames (reversedName, serial, notBefore) VALUES (?,?,0)" ,
385385 "com.example-b" ,
386386 serial2String ,
@@ -403,9 +403,9 @@ func (ctx testCtx) addCertificates(t *testing.T) {
403403 Expires : rawCertC .NotAfter ,
404404 DER : certDerC ,
405405 }
406- err = ctx .c .dbMap .Insert (certC )
406+ err = tc .c .dbMap .Insert (certC )
407407 test .AssertNotError (t , err , "Couldn't add certC" )
408- _ , err = ctx .c .dbMap .Exec (
408+ _ , err = tc .c .dbMap .Exec (
409409 "INSERT INTO issuedNames (reversedName, serial, notBefore) VALUES (?,?,0)" ,
410410 "com.example-c" ,
411411 serial3String ,
@@ -428,9 +428,9 @@ func (ctx testCtx) addCertificates(t *testing.T) {
428428 Expires : rawCertD .NotAfter ,
429429 DER : certDerD ,
430430 }
431- err = ctx .c .dbMap .Insert (certD )
431+ err = tc .c .dbMap .Insert (certD )
432432 test .AssertNotError (t , err , "Couldn't add certD" )
433- _ , err = ctx .c .dbMap .Exec (
433+ _ , err = tc .c .dbMap .Exec (
434434 "INSERT INTO issuedNames (reversedName, serial, notBefore) VALUES (?,?,0)" ,
435435 "com.example-d" ,
436436 serial4String ,
0 commit comments