| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 // that can be found in the LICENSE file. | |
| 4 | |
| 5 // Data Structures used for defining test data for use with testing each theme. | |
| 6 | |
| 7 package settings | |
| 8 | |
| 9 import ( | |
| 10 "github.com/luci/luci-go/server/templates" | |
| 11 ) | |
| 12 | |
| 13 // TestableHandler pairs up a handler with a list of test data. | |
| 14 type TestableHandler interface { | |
| 15 // ThemedHandler represents the Hanler that this TestableHandler is asso
ciated with. | |
| 16 ThemedHandler | |
| 17 // TestData returns a list of example data used for testing if a theme r
enders correctly. | |
| 18 TestData() []TestBundle | |
| 19 } | |
| 20 | |
| 21 // TestBundle is a template arg associated with a description used for testing. | |
| 22 type TestBundle struct { | |
| 23 // Description is a short one line description of what the data contains
. | |
| 24 Description string | |
| 25 // Data is the data fed directly into the template. | |
| 26 Data templates.Args | |
| 27 } | |
| OLD | NEW |