generated from snivilised/astrolib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(kernel): add universal navigator tests (#62)
- Loading branch information
1 parent
7d5815d
commit abc3a11
Showing
30 changed files
with
347 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ | |
"icase", | ||
"ineffassign", | ||
"jibberjabber", | ||
"Kontroller", | ||
"leaktest", | ||
"linecomment", | ||
"linters", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
package kernel | ||
|
||
import ( | ||
"github.com/snivilised/traverse/core" | ||
"github.com/snivilised/traverse/internal/types" | ||
"github.com/snivilised/traverse/pref" | ||
) | ||
|
||
type ( | ||
Artefacts struct { | ||
Navigator core.Navigator | ||
Kontroller types.KernelController | ||
Mediator types.Mediator | ||
Facilities types.Facilities | ||
Resources *types.Resources | ||
Completion types.Completion | ||
} | ||
|
||
NavigatorBuilder interface { | ||
Build(o *pref.Options, res *types.Resources) (*Artefacts, error) | ||
Build(o *pref.Options, | ||
resources *types.Resources, | ||
) (*Artefacts, error) | ||
} | ||
|
||
Builder func(o *pref.Options, res *types.Resources) (*Artefacts, error) | ||
Builder func(o *pref.Options, | ||
resources *types.Resources, | ||
) (*Artefacts, error) | ||
) | ||
|
||
func (fn Builder) Build(o *pref.Options, res *types.Resources) (*Artefacts, error) { | ||
return fn(o, res) | ||
func (fn Builder) Build(o *pref.Options, | ||
resources *types.Resources, | ||
) (*Artefacts, error) { | ||
return fn(o, resources) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.