SkipIfVersionLessThan is used to skip tests if the API version < the specified version. If minVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used.
(minVersion string)
| 101 | // SkipIfVersionLessThan is used to skip tests if the API version < the specified version. If |
| 102 | // minVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used. |
| 103 | func SkipIfVersionLessThan(minVersion string) { |
| 104 | if ignoreAPIVersion() { |
| 105 | return |
| 106 | } |
| 107 | |
| 108 | version := matchMajorAPIVersion(minVersion) |
| 109 | if !IsVersionMet(minVersion) { |
| 110 | Skip(fmt.Sprintf("minimum version %s not met by API version %s", minVersion, version)) |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // SkipIfVersionLessThan is used to skip tests if the API version >= the specified version. If |
| 115 | // maxVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used. |
no test coverage detected