Octal implements formatStringInterpolatorV2.Octal.
(arg ref.Val)
| 522 | |
| 523 | // Octal implements formatStringInterpolatorV2.Octal. |
| 524 | func (c *stringFormatCheckerV2) Octal(arg ref.Val) (string, error) { |
| 525 | id := c.args[c.currArgIndex].ID() |
| 526 | valid := c.verifyTypeOneOf(id, types.IntType, types.UintType) |
| 527 | if !valid { |
| 528 | return "", octalFormatErrorV2(id, c.typeOf(id).TypeName()) |
| 529 | } |
| 530 | return "", nil |
| 531 | } |
| 532 | |
| 533 | // Arg implements formatListArgs.Arg. |
| 534 | func (c *stringFormatCheckerV2) Arg(index int64) (ref.Val, error) { |
nothing calls this directly
no test coverage detected