Merge "Handle property structs and BpPropertySets as values to AddProperty."

This commit is contained in:
Martin Stjernholm
2020-09-28 10:06:04 +00:00
committed by Gerrit Code Review
4 changed files with 246 additions and 4 deletions

View File

@@ -217,6 +217,22 @@ func (h *TestHelper) AssertDeepEquals(message string, expected interface{}, actu
}
}
func (h *TestHelper) AssertPanic(message string, funcThatShouldPanic func()) {
h.t.Helper()
panicked := false
func() {
defer func() {
if x := recover(); x != nil {
panicked = true
}
}()
funcThatShouldPanic()
}()
if !panicked {
h.t.Error(message)
}
}
// Encapsulates result of processing an SDK definition. Provides support for
// checking the state of the build structures.
type testSdkResult struct {