Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Side by Side Diff: appengine/ephelper/epfrontend/util_test.go

Issue 1750143003: Remove ephelper and other endpoints code. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/ephelper/epfrontend/util.go ('k') | appengine/ephelper/ephelper.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package epfrontend
6
7 import (
8 "fmt"
9 "testing"
10
11 . "github.com/smartystreets/goconvey/convey"
12 )
13
14 func TestSafeURLPathJoin(t *testing.T) {
15 Convey(`Testing safeURLPathJoin`, t, func() {
16 for _, e := range []struct {
17 parts []string
18 value string
19 }{
20 {[]string{"foo", "bar", "baz"}, "foo/bar/baz"},
21 {[]string{"", "foo", "bar", "baz", ""}, "/foo/bar/baz/"} ,
22 {[]string{"/", "/foo/", "/bar/", "//baz///"}, "/foo/bar/ baz"},
23 {[]string{""}, ""},
24 } {
25 Convey(fmt.Sprintf(`URL parts %v resolve to %q.`, e.part s, e.value), func() {
26 So(safeURLPathJoin(e.parts...), ShouldEqual, e.v alue)
27 })
28 }
29 })
30 }
OLDNEW
« no previous file with comments | « appengine/ephelper/epfrontend/util.go ('k') | appengine/ephelper/ephelper.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698