(id ID)
| 154 | |
| 155 | func (b readBootFile) BootSpec(m Machine) (*Spec, error) { return nil, nil } |
| 156 | func (b readBootFile) ReadBootFile(id ID) (io.ReadCloser, int64, error) { |
| 157 | d := fmt.Sprintf("%s %s", id, b) |
| 158 | return ioutil.NopCloser(bytes.NewBuffer([]byte(d))), int64(len(d)), nil |
| 159 | } |
| 160 | func (b readBootFile) WriteBootFile(id ID, r io.Reader) error { return errors.New("no") } |
| 161 | |
| 162 | func TestFile(t *testing.T) { |
nothing calls this directly
no outgoing calls
no test coverage detected