Lines Matching refs:IF
30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46 err string // if "", no error expected
73 if err := SetExtension(msg, E_Greeting, []string{"bula", "hola"}); err != nil {
533 if test.err == "" {
535 if err != nil {
537 } else if !reflect.DeepEqual(pb, test.out) {
543 if err == nil {
545 } else if err.Error() != test.err {
548 } else if _, ok := err.(*RequiredNotSetError); ok && test.out != nil && !reflect.DeepEqual(pb, test.out) {
558 if err := UnmarshalText("custom", msg); err != nil {
561 if UnmarshalText("not custom", msg) == nil {
569 if err := UnmarshalText("color: RED", pb); err != nil {
575 if !Equal(pb, exp) {
587 if err := UnmarshalText(in, m); err != nil {
590 if !Equal(m, want) {
620 if err := UnmarshalText(in, m); err != nil {
623 if !Equal(m, want) {
632 if err := UnmarshalText(in, m); err != nil {
635 if !Equal(m, want) {
642 if err := UnmarshalText(inOverwrite, m); err == nil {
644 } else if err.Error() != testErr {
662 if err != nil {