(dAtA []byte)
| 3422 | return fmt.Sprintf("*%v", pv) |
| 3423 | } |
| 3424 | func (m *PrometheusResponse) Unmarshal(dAtA []byte) error { |
| 3425 | l := len(dAtA) |
| 3426 | iNdEx := 0 |
| 3427 | for iNdEx < l { |
| 3428 | preIndex := iNdEx |
| 3429 | var wire uint64 |
| 3430 | for shift := uint(0); ; shift += 7 { |
| 3431 | if shift >= 64 { |
| 3432 | return ErrIntOverflowQuery |
| 3433 | } |
| 3434 | if iNdEx >= l { |
| 3435 | return io.ErrUnexpectedEOF |
| 3436 | } |
| 3437 | b := dAtA[iNdEx] |
| 3438 | iNdEx++ |
| 3439 | wire |= uint64(b&0x7F) << shift |
| 3440 | if b < 0x80 { |
| 3441 | break |
| 3442 | } |
| 3443 | } |
| 3444 | fieldNum := int32(wire >> 3) |
| 3445 | wireType := int(wire & 0x7) |
| 3446 | if wireType == 4 { |
| 3447 | return fmt.Errorf("proto: PrometheusResponse: wiretype end group for non-group") |
| 3448 | } |
| 3449 | if fieldNum <= 0 { |
| 3450 | return fmt.Errorf("proto: PrometheusResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3451 | } |
| 3452 | switch fieldNum { |
| 3453 | case 1: |
| 3454 | if wireType != 2 { |
| 3455 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3456 | } |
| 3457 | var stringLen uint64 |
| 3458 | for shift := uint(0); ; shift += 7 { |
| 3459 | if shift >= 64 { |
| 3460 | return ErrIntOverflowQuery |
| 3461 | } |
| 3462 | if iNdEx >= l { |
| 3463 | return io.ErrUnexpectedEOF |
| 3464 | } |
| 3465 | b := dAtA[iNdEx] |
| 3466 | iNdEx++ |
| 3467 | stringLen |= uint64(b&0x7F) << shift |
| 3468 | if b < 0x80 { |
| 3469 | break |
| 3470 | } |
| 3471 | } |
| 3472 | intStringLen := int(stringLen) |
| 3473 | if intStringLen < 0 { |
| 3474 | return ErrInvalidLengthQuery |
| 3475 | } |
| 3476 | postIndex := iNdEx + intStringLen |
| 3477 | if postIndex < 0 { |
| 3478 | return ErrInvalidLengthQuery |
| 3479 | } |
| 3480 | if postIndex > l { |
| 3481 | return io.ErrUnexpectedEOF |
no test coverage detected