Files
AetherForge/agent/config/erasure_lanes_test.go
AetherForge 0445b7ed4f
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Add erasure-coded multi-lane spread foundation.
Server Reed-Solomon 4+2 shard encode on deploy plans when erasure_lanes_enabled; agents reassemble from parallel lane URLs as staging fallback with BGP/Path Tracer hints.
2026-06-07 06:09:20 -07:00

13 lines
300 B
Go

package config
import "testing"
func TestErasureLanesEnabled(t *testing.T) {
if ErasureLanesEnabled(RuntimeConfig{}) {
t.Fatal("expected off by default")
}
if !ErasureLanesEnabled(RuntimeConfig{BuiltinConfig: BuiltinConfig{ErasureLanesEnabled: true}}) {
t.Fatal("expected on when set")
}
}