mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
By setting up pwd as a Go workspace, we can trim import paths from something like "github.com/achilleasa/gopher-os/kernel" to just "kernel". These changes make forking easier and also allows us to move the code to a different git hosting provider without having to rewrite the imports.
15 lines
260 B
Go
15 lines
260 B
Go
package kernel
|
|
|
|
import "testing"
|
|
|
|
func TestKernelError(t *testing.T) {
|
|
err := &Error{
|
|
Module: "foo",
|
|
Message: "error message",
|
|
}
|
|
|
|
if err.Error() != err.Message {
|
|
t.Fatalf("expected to err.Error() to return %q; got %q", err.Message, err.Error())
|
|
}
|
|
}
|