aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/appengine/channel/channel_test.go
blob: c7498eb83bfbc82bdda34ea88985c22da61577b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2015 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.

package channel

import (
	"testing"

	"google.golang.org/appengine/internal"
)

func TestRemapError(t *testing.T) {
	err := &internal.APIError{
		Service: "xmpp",
	}
	err = remapError(err).(*internal.APIError)
	if err.Service != "channel" {
		t.Errorf("err.Service = %q, want %q", err.Service, "channel")
	}
}