(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestNewServer_ReadOnlyMode(t *testing.T) { |
| 123 | dir := createTestTaskDir(t) |
| 124 | cfg := Config{ |
| 125 | Port: 0, |
| 126 | ScanDir: dir, |
| 127 | ReadOnly: true, |
| 128 | Version: "1.0.0-test", |
| 129 | } |
| 130 | |
| 131 | s := NewServer(cfg) |
| 132 | |
| 133 | if !s.config.ReadOnly { |
| 134 | t.Error("expected read-only mode") |
| 135 | } |
| 136 | if s.config.Version != "1.0.0-test" { |
| 137 | t.Errorf("expected version '1.0.0-test', got %q", s.config.Version) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestMountFallback_ServesHTML(t *testing.T) { |
| 142 | dir := createTestTaskDir(t) |
nothing calls this directly
no test coverage detected