- Update Makefile with native build targets (preparing for C++) - Add profiler and performance regression detector commands - Update CI/testing scripts - Add additional unit tests for API, jupyter, queue, manifest
20 lines
611 B
Go
20 lines
611 B
Go
//nolint:revive // Package name 'api' is appropriate for this test package
|
|
package api_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/jfraeys/fetch_ml/internal/api"
|
|
)
|
|
|
|
func TestWSHandlerNewQueueOpcodeExists(t *testing.T) {
|
|
if api.OpcodeQueueJobWithNote != 0x1B {
|
|
t.Fatalf("expected OpcodeQueueJobWithNote to be 0x1B, got %d", api.OpcodeQueueJobWithNote)
|
|
}
|
|
if api.OpcodeAnnotateRun != 0x1C {
|
|
t.Fatalf("expected OpcodeAnnotateRun to be 0x1C, got %d", api.OpcodeAnnotateRun)
|
|
}
|
|
if api.OpcodeSetRunNarrative != 0x1D {
|
|
t.Fatalf("expected OpcodeSetRunNarrative to be 0x1D, got %d", api.OpcodeSetRunNarrative)
|
|
}
|
|
}
|