| 38 | using kudu::Version; |
| 39 | |
| 40 | TEST(WorkloadManagementTest, ParseSchemaVersionFlagHappyPath) { |
| 41 | // Asserts any valid version can be parsed. |
| 42 | FLAGS_workload_mgmt_schema_version = "0.0.0"; |
| 43 | |
| 44 | Version v; |
| 45 | |
| 46 | ASSERT_OK(ParseSchemaVersionFlag(&v)); |
| 47 | ASSERT_EQ("0.0.0", v.ToString()); |
| 48 | } |
| 49 | |
| 50 | TEST(WorkloadManagementTest, ParseSchemaVersionFlagEmpty) { |
| 51 | // Asserts an empty schema version flag defaults to the latest version; |
nothing calls this directly
no test coverage detected