@@ -79,29 +79,29 @@ func TestFailedAuthorizationsPerDomainPerAccountTransactions(t *testing.T) {
7979 test .AssertEquals (t , len (txns ), 1 )
8080 test .AssertEquals (t , txns [0 ].bucketKey , "4:123456789:so.many.labels.here.example.com" )
8181 test .Assert (t , txns [0 ].checkOnly (), "should be check-only" )
82- test .Assert (t , ! txns [0 ].limit .isOverride () , "should not be an override" )
82+ test .Assert (t , ! txns [0 ].limit .isOverride , "should not be an override" )
8383
8484 // A spend-only transaction for the default per-account limit.
8585 txn , err := tb .FailedAuthorizationsPerDomainPerAccountSpendOnlyTransaction (123456789 , "so.many.labels.here.example.com" )
8686 test .AssertNotError (t , err , "creating transaction" )
8787 test .AssertEquals (t , txn .bucketKey , "4:123456789:so.many.labels.here.example.com" )
8888 test .Assert (t , txn .spendOnly (), "should be spend-only" )
89- test .Assert (t , ! txn .limit .isOverride () , "should not be an override" )
89+ test .Assert (t , ! txn .limit .isOverride , "should not be an override" )
9090
9191 // A check-only transaction for the per-account limit override.
9292 txns , err = tb .FailedAuthorizationsPerDomainPerAccountCheckOnlyTransactions (13371338 , []string {"so.many.labels.here.example.com" })
9393 test .AssertNotError (t , err , "creating transactions" )
9494 test .AssertEquals (t , len (txns ), 1 )
9595 test .AssertEquals (t , txns [0 ].bucketKey , "4:13371338:so.many.labels.here.example.com" )
9696 test .Assert (t , txns [0 ].checkOnly (), "should be check-only" )
97- test .Assert (t , txns [0 ].limit .isOverride () , "should be an override" )
97+ test .Assert (t , txns [0 ].limit .isOverride , "should be an override" )
9898
9999 // A spend-only transaction for the per-account limit override.
100100 txn , err = tb .FailedAuthorizationsPerDomainPerAccountSpendOnlyTransaction (13371338 , "so.many.labels.here.example.com" )
101101 test .AssertNotError (t , err , "creating transaction" )
102102 test .AssertEquals (t , txn .bucketKey , "4:13371338:so.many.labels.here.example.com" )
103103 test .Assert (t , txn .spendOnly (), "should be spend-only" )
104- test .Assert (t , txn .limit .isOverride () , "should be an override" )
104+ test .Assert (t , txn .limit .isOverride , "should be an override" )
105105}
106106
107107func TestFailedAuthorizationsForPausingPerDomainPerAccountTransactions (t * testing.T ) {
@@ -115,7 +115,7 @@ func TestFailedAuthorizationsForPausingPerDomainPerAccountTransactions(t *testin
115115 test .AssertNotError (t , err , "creating transaction" )
116116 test .AssertEquals (t , txn .bucketKey , "8:13371338:so.many.labels.here.example.com" )
117117 test .Assert (t , txn .check && txn .spend , "should be check and spend" )
118- test .Assert (t , txn .limit .isOverride () , "should be an override" )
118+ test .Assert (t , txn .limit .isOverride , "should be an override" )
119119}
120120
121121func TestCertificatesPerDomainTransactions (t * testing.T ) {
@@ -153,15 +153,15 @@ func TestCertificatesPerDomainPerAccountTransactions(t *testing.T) {
153153 test .AssertEquals (t , len (txns ), 1 )
154154 test .AssertEquals (t , txns [0 ].bucketKey , "6:13371338:example.com" )
155155 test .Assert (t , txns [0 ].checkOnly (), "should be check-only" )
156- test .Assert (t , txns [0 ].limit .isOverride () , "should be an override" )
156+ test .Assert (t , txns [0 ].limit .isOverride , "should be an override" )
157157
158158 // Same as above, but with multiple example.com domains.
159159 txns , err = tb .certificatesPerDomainCheckOnlyTransactions (13371338 , []string {"so.many.labels.here.example.com" , "z.example.com" })
160160 test .AssertNotError (t , err , "creating transactions" )
161161 test .AssertEquals (t , len (txns ), 1 )
162162 test .AssertEquals (t , txns [0 ].bucketKey , "6:13371338:example.com" )
163163 test .Assert (t , txns [0 ].checkOnly (), "should be check-only" )
164- test .Assert (t , txns [0 ].limit .isOverride () , "should be an override" )
164+ test .Assert (t , txns [0 ].limit .isOverride , "should be an override" )
165165
166166 // Same as above, but with different domains.
167167 txns , err = tb .certificatesPerDomainCheckOnlyTransactions (13371338 , []string {"so.many.labels.here.example.com" , "z.example.net" })
@@ -170,10 +170,10 @@ func TestCertificatesPerDomainPerAccountTransactions(t *testing.T) {
170170 test .AssertEquals (t , len (txns ), 2 )
171171 test .AssertEquals (t , txns [0 ].bucketKey , "6:13371338:example.com" )
172172 test .Assert (t , txns [0 ].checkOnly (), "should be check-only" )
173- test .Assert (t , txns [0 ].limit .isOverride () , "should be an override" )
173+ test .Assert (t , txns [0 ].limit .isOverride , "should be an override" )
174174 test .AssertEquals (t , txns [1 ].bucketKey , "6:13371338:example.net" )
175175 test .Assert (t , txns [1 ].checkOnly (), "should be check-only" )
176- test .Assert (t , txns [1 ].limit .isOverride () , "should be an override" )
176+ test .Assert (t , txns [1 ].limit .isOverride , "should be an override" )
177177
178178 // Two spend-only transactions, one for the global limit and one for the
179179 // per-account limit override.
@@ -183,11 +183,11 @@ func TestCertificatesPerDomainPerAccountTransactions(t *testing.T) {
183183 txns = sortTransactions (txns )
184184 test .AssertEquals (t , txns [0 ].bucketKey , "5:example.com" )
185185 test .Assert (t , txns [0 ].spendOnly (), "should be spend-only" )
186- test .Assert (t , ! txns [0 ].limit .isOverride () , "should not be an override" )
186+ test .Assert (t , ! txns [0 ].limit .isOverride , "should not be an override" )
187187
188188 test .AssertEquals (t , txns [1 ].bucketKey , "6:13371338:example.com" )
189189 test .Assert (t , txns [1 ].spendOnly (), "should be spend-only" )
190- test .Assert (t , txns [1 ].limit .isOverride () , "should be an override" )
190+ test .Assert (t , txns [1 ].limit .isOverride , "should be an override" )
191191}
192192
193193func TestCertificatesPerFQDNSetTransactions (t * testing.T ) {
@@ -202,7 +202,7 @@ func TestCertificatesPerFQDNSetTransactions(t *testing.T) {
202202 namesHash := fmt .Sprintf ("%x" , core .HashNames ([]string {"example.com" , "example.net" , "example.org" }))
203203 test .AssertEquals (t , txn .bucketKey , "7:" + namesHash )
204204 test .Assert (t , txn .checkOnly (), "should be check-only" )
205- test .Assert (t , ! txn .limit .isOverride () , "should not be an override" )
205+ test .Assert (t , ! txn .limit .isOverride , "should not be an override" )
206206}
207207
208208func TestNewTransactionBuilder (t * testing.T ) {
0 commit comments