Explorar el Código

Add missed case for error rate test

tags/v2.0.0-rc1
9seconds hace 5 años
padre
commit
102e7610be
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      config/type_error_rate_test.go

+ 2
- 0
config/type_error_rate_test.go Ver fichero

@@ -35,6 +35,8 @@ func (suite *TypeErrorRateTestSuite) TestUnmarshalFail() {
35 35
 			assert.Error(t, json.Unmarshal(data, &typeErrorRateTestStruct{}))
36 36
 		})
37 37
 	}
38
+
39
+	suite.Error(json.Unmarshal([]byte("test"), &typeErrorRateTestStruct{}))
38 40
 }
39 41
 
40 42
 func (suite *TypeErrorRateTestSuite) TestUnmarshalOk() {

Loading…
Cancelar
Guardar