code: func (m *mockCostEstimations) create(cvID, workspaceID string) (*tfe.CostEstimation, error) {
  	id := generateID("ce-")
  
  	ce := &tfe.CostEstimation{
  		ID:     id,
  		Status: tfe.CostEstimationQueued,
  	}
  
  	w, ok := m.client.Workspaces.workspaceIDs[workspaceID]
  	if !ok {
  		return nil, tfe.ErrResourceNotFound
  	}
  
  	logfile := filepath.Join(
  		m.client.ConfigurationVersions.uploadPaths[cvID],
  		w.WorkingDirectory,
  		"ce.log",
  	)
  
  	if _, err := os.Stat(logfile); os.IsNotExist(err) {
  		return nil, nil
  	}
  
  	m.logs[ce.ID] = logfile
  	m.estimations[ce.ID] = ce
  
  	return ce, nil
  }
docs: // create is a helper function to create a mock cost estimation that uses the
  // configured working directory to find the logfile.