channel_test.go 470 B

123456789101112131415161718192021
  1. // Copyright 2015 Google Inc. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package channel
  5. import (
  6. "testing"
  7. "google.golang.org/appengine/internal"
  8. )
  9. func TestRemapError(t *testing.T) {
  10. err := &internal.APIError{
  11. Service: "xmpp",
  12. }
  13. err = remapError(err).(*internal.APIError)
  14. if err.Service != "channel" {
  15. t.Errorf("err.Service = %q, want %q", err.Service, "channel")
  16. }
  17. }