Helper functions for overrides API tests
(limits *client.Limits, version string)
| 787 | // Helper functions for overrides API tests |
| 788 | |
| 789 | func printLimits(limits *client.Limits, version string) { |
| 790 | var str string |
| 791 | if limits != nil { |
| 792 | bytes, err := json.Marshal(limits) |
| 793 | if err == nil { |
| 794 | str = string(bytes) |
| 795 | } |
| 796 | } |
| 797 | fmt.Printf("* Overrides (version = %s): %+v\n", version, str) |
| 798 | } |
| 799 | |
| 800 | func boolPtr(b bool) *bool { |
| 801 | return &b |
no test coverage detected