func TestConfigMapHash(t *testing.T) { … } func TestSecretHash(t *testing.T) { … } func TestEncodeConfigMap(t *testing.T) { … } func TestEncodeSecret(t *testing.T) { … } func TestHash(t *testing.T) { … } // warn devs who change types that they might have to update a hash function // not perfect, as it only checks the number of top-level fields func TestTypeStability(t *testing.T) { … } // SkipRest returns true if there was a non-nil error or if we expected an error that didn't happen, // and logs the appropriate error on the test object. // The return value indicates whether we should skip the rest of the test case due to the error result. func SkipRest(t *testing.T, desc string, err error, contains string) bool { … }