code: func (m *mockPlans) create(cvID, workspaceID string) (*tfe.Plan, error) {
  	id := generateID("plan-")
  	url := fmt.Sprintf("https://app.terraform.io/_archivist/%s", id)
  
  	p := &tfe.Plan{
  		ID:         id,
  		LogReadURL: url,
  		Status:     tfe.PlanPending,
  	}
  
  	w, ok := m.client.Workspaces.workspaceIDs[workspaceID]
  	if !ok {
  		return nil, tfe.ErrResourceNotFound
  	}
  
  	m.logs[url] = filepath.Join(
  		m.client.ConfigurationVersions.uploadPaths[cvID],
  		w.WorkingDirectory,
  		"plan.log",
  	)
  	m.plans[p.ID] = p
  
  	return p, nil
  }
docs: // create is a helper function to create a mock plan that uses the configured
  // working directory to find the logfile.