(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestGetInstanceDatabaseID(t *testing.T) { |
| 11 | instanceID, err := GetInstanceID("instances/i2") |
| 12 | require.NoError(t, err) |
| 13 | require.Equal(t, "i2", instanceID) |
| 14 | |
| 15 | _, err = GetInstanceID("instances/i2/databases/d3") |
| 16 | require.Error(t, err) |
| 17 | } |
| 18 | |
| 19 | func TestGetProjectIDQueryHistoryID(t *testing.T) { |
| 20 | projectID, historyID, err := GetProjectIDQueryHistoryID("projects/p1/queryHistories/550e8400-e29b-41d4-a716-446655440000") |
nothing calls this directly
no test coverage detected