@@ -43,7 +43,7 @@ type LogMatchesSuite struct{}
43
43
var _ = gc .Suite (& LogMatchesSuite {})
44
44
45
45
func (s * LogMatchesSuite ) TestMatchSimpleMessage (c * gc.C ) {
46
- log := []loggo.TestLogValues {
46
+ log := []loggo.Entry {
47
47
{Level : loggo .INFO , Message : "foo bar" },
48
48
{Level : loggo .INFO , Message : "12345" },
49
49
}
@@ -68,7 +68,7 @@ func (s *LogMatchesSuite) TestMatchSimpleMessage(c *gc.C) {
68
68
}
69
69
70
70
func (s * LogMatchesSuite ) TestMatchSimpleMessages (c * gc.C ) {
71
- log := []loggo.TestLogValues {
71
+ log := []loggo.Entry {
72
72
{Level : loggo .INFO , Message : "foo bar" },
73
73
{Level : loggo .INFO , Message : "12345" },
74
74
}
@@ -93,7 +93,7 @@ func (s *LogMatchesSuite) TestMatchSimpleMessages(c *gc.C) {
93
93
}
94
94
95
95
func (s * LogMatchesSuite ) TestMatchStrings (c * gc.C ) {
96
- log := []loggo.TestLogValues {
96
+ log := []loggo.Entry {
97
97
{Level : loggo .INFO , Message : "foo bar" },
98
98
{Level : loggo .INFO , Message : "12345" },
99
99
}
@@ -103,7 +103,7 @@ func (s *LogMatchesSuite) TestMatchStrings(c *gc.C) {
103
103
}
104
104
105
105
func (s * LogMatchesSuite ) TestMatchInexact (c * gc.C ) {
106
- log := []loggo.TestLogValues {
106
+ log := []loggo.Entry {
107
107
{Level : loggo .INFO , Message : "foo bar" },
108
108
{Level : loggo .INFO , Message : "baz" },
109
109
{Level : loggo .DEBUG , Message : "12345" },
@@ -169,11 +169,11 @@ func (s *LogMatchesSuite) TestLogMatchesOnlyAcceptsSliceTestLogValues(c *gc.C) {
169
169
expected := jc.SimpleMessages {}
170
170
result , err := jc .LogMatches .Check ([]interface {}{obtained , expected }, nil )
171
171
c .Assert (result , gc .Equals , false )
172
- c .Assert (err , gc .Equals , "Obtained value must be of type []loggo.TestLogValues or SimpleMessage" )
172
+ c .Assert (err , gc .Equals , "Obtained value must be of type []loggo.Entry or SimpleMessage" )
173
173
}
174
174
175
175
func (s * LogMatchesSuite ) TestLogMatchesOnlyAcceptsStringOrSimpleMessages (c * gc.C ) {
176
- obtained := []loggo.TestLogValues {
176
+ obtained := []loggo.Entry {
177
177
{Level : loggo .INFO , Message : "foo bar" },
178
178
{Level : loggo .INFO , Message : "baz" },
179
179
{Level : loggo .DEBUG , Message : "12345" },
@@ -185,7 +185,7 @@ func (s *LogMatchesSuite) TestLogMatchesOnlyAcceptsStringOrSimpleMessages(c *gc.
185
185
}
186
186
187
187
func (s * LogMatchesSuite ) TestLogMatchesFailsOnInvalidRegex (c * gc.C ) {
188
- var obtained interface {} = []loggo.TestLogValues {{Level : loggo .INFO , Message : "foo bar" }}
188
+ var obtained interface {} = []loggo.Entry {{Level : loggo .INFO , Message : "foo bar" }}
189
189
var expected interface {} = []string {"[]foo" }
190
190
191
191
result , err := jc .LogMatches .Check ([]interface {}{obtained , expected }, nil /* unused */ )
0 commit comments