code: func (m *mockPolicyChecks) create(cvID, workspaceID string) (*tfe.PolicyCheck, error) {
  	id := generateID("pc-")
  
  	pc := &tfe.PolicyCheck{
  		ID:          id,
  		Actions:     &tfe.PolicyActions{},
  		Permissions: &tfe.PolicyPermissions{},
  		Scope:       tfe.PolicyScopeOrganization,
  		Status:      tfe.PolicyPending,
  	}
  
  	w, ok := m.client.Workspaces.workspaceIDs[workspaceID]
  	if !ok {
  		return nil, tfe.ErrResourceNotFound
  	}
  
  	logfile := filepath.Join(
  		m.client.ConfigurationVersions.uploadPaths[cvID],
  		w.WorkingDirectory,
  		"policy.log",
  	)
  
  	if _, err := os.Stat(logfile); os.IsNotExist(err) {
  		return nil, nil
  	}
  
  	m.logs[pc.ID] = logfile
  	m.checks[pc.ID] = pc
  
  	return pc, nil
  }
docs: // create is a helper function to create a mock policy check that uses the
  // configured working directory to find the logfile.