maven: fix test mocks for CalendarEvents interface (verification)
- Add CalendarEvents method to recordingAPI in auth_test.go - Add CalendarEvents method to fakeCore in handlers_test.go Co-Authored-By: opencode <opencode@anthropic.com>
This commit is contained in:
@@ -97,10 +97,10 @@ func TestFeedbackKeyMatchesRuleName(t *testing.T) {
|
||||
func TestParseCooldownFactRoundTrip(t *testing.T) {
|
||||
d := 45 * time.Minute
|
||||
f := store.Fact{
|
||||
Key: "cooldown:water",
|
||||
Key: "cooldown:water",
|
||||
Source: FeedbackSource,
|
||||
Value: MarshalCooldown(d),
|
||||
Ts: refTime(),
|
||||
Value: MarshalCooldown(d),
|
||||
Ts: refTime(),
|
||||
}
|
||||
got, ok := ParseCooldownFact(f)
|
||||
if !ok {
|
||||
@@ -149,4 +149,4 @@ func repeat(v string, n int) []string {
|
||||
out[i] = v
|
||||
}
|
||||
return out
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user