Skip to content

Commit

Permalink
push package actor to its own repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dc0d committed Nov 1, 2022
1 parent 136efa9 commit 2cc976b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 462 deletions.
114 changes: 0 additions & 114 deletions actor/actor.go

This file was deleted.

237 changes: 0 additions & 237 deletions actor/actor_test.go

This file was deleted.

12 changes: 8 additions & 4 deletions actor/callbacks_spy_test.go → callbacks_spy_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package actor
package spool

import (
"sync"

"github.com/dc0d/actor"
)

var _ Callbacks[int] = &CallbacksSpy[int]{}
var _ actor.Callbacks[int] = &CallbacksSpy[int]{}

type CallbacksSpy[T any] struct {
// ReceivedFunc mocks the Received method.
Expand Down Expand Up @@ -46,7 +48,8 @@ func (mock *CallbacksSpy[T]) Received(ifaceVal T) {

// ReceivedCalls gets all the calls that were made to Received.
// Check the length with:
// len(mockedCallbacks.ReceivedCalls())
//
// len(mockedCallbacks.ReceivedCalls())
func (mock *CallbacksSpy[T]) ReceivedCalls() []struct {
IfaceVal T
} {
Expand Down Expand Up @@ -74,7 +77,8 @@ func (mock *CallbacksSpy[T]) Stopped() {

// StoppedCalls gets all the calls that were made to Stopped.
// Check the length with:
// len(mockedCallbacks.StoppedCalls())
//
// len(mockedCallbacks.StoppedCalls())
func (mock *CallbacksSpy[T]) StoppedCalls() []struct {
} {
var calls []struct {
Expand Down
Loading

0 comments on commit 2cc976b

Please sign in to comment.