Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: README.recipes.md

Issue 2988583002: [path] Fix root path mocking. (Closed)
Patch Set: use real paths Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | recipe_modules/path/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.recipes.md
diff --git a/README.recipes.md b/README.recipes.md
index 984e8975f9d1c3d3bede92627fe342175a57147f..882eee4b11e438fd2042536eadbe2857f22d508b 100644
--- a/README.recipes.md
+++ b/README.recipes.md
@@ -507,14 +507,14 @@ There are other anchor points which can be defined (e.g. by the
`depot_tools/infra_paths` module). Refer to those modules for additional
documentation.
-#### **class [PathApi](/recipe_modules/path/api.py#L196)([RecipeApi](/recipe_engine/recipe_api.py#L884)):**
+#### **class [PathApi](/recipe_modules/path/api.py#L197)([RecipeApi](/recipe_engine/recipe_api.py#L884)):**
-— **def [\_\_getitem\_\_](/recipe_modules/path/api.py#L421)(self, name):**
+— **def [\_\_getitem\_\_](/recipe_modules/path/api.py#L422)(self, name):**
Gets the base path named `name`. See module docstring for more
information.
-— **def [abs\_to\_path](/recipe_modules/path/api.py#L351)(self, abs_string_path):**
+— **def [abs\_to\_path](/recipe_modules/path/api.py#L352)(self, abs_string_path):**
Converts an absolute path string `string_path` to a real Path object,
using the most appropriate known base path.
@@ -540,39 +540,39 @@ api.path.abs_to_path("/basis/dir/for/recipe/some/other/dir") ->
Raises an ValueError if the preconditions are not met, otherwise returns the
Path object.
-— **def [assert\_absolute](/recipe_modules/path/api.py#L326)(self, path):**
+— **def [assert\_absolute](/recipe_modules/path/api.py#L327)(self, path):**
Raises AssertionError if the given path is not an absolute path.
Args:
* path (Path|str) - The path to check.
-— **def [get](/recipe_modules/path/api.py#L414)(self, name, default=None):**
+— **def [get](/recipe_modules/path/api.py#L415)(self, name, default=None):**
Gets the base path named `name`. See module docstring for more
information.
-— **def [get\_config\_defaults](/recipe_modules/path/api.py#L208)(self):**
+— **def [get\_config\_defaults](/recipe_modules/path/api.py#L209)(self):**
Internal recipe implementation function.
-— **def [initialize](/recipe_modules/path/api.py#L270)(self):**
+— **def [initialize](/recipe_modules/path/api.py#L271)(self):**
Internal recipe implementation function.
-— **def [mkdtemp](/recipe_modules/path/api.py#L334)(self, prefix):**
+— **def [mkdtemp](/recipe_modules/path/api.py#L335)(self, prefix):**
Makes a new temporary directory, returns Path to it.
-— **def [mock\_add\_paths](/recipe_modules/path/api.py#L305)(self, path):**
+— **def [mock\_add\_paths](/recipe_modules/path/api.py#L306)(self, path):**
For testing purposes, mark that |path| exists.
-— **def [mock\_copy\_paths](/recipe_modules/path/api.py#L310)(self, source, dest):**
+— **def [mock\_copy\_paths](/recipe_modules/path/api.py#L311)(self, source, dest):**
For testing purposes, copy |source| to |dest|.
-— **def [mock\_remove\_paths](/recipe_modules/path/api.py#L315)(self, path, filt=(lambda p: True)):**
+— **def [mock\_remove\_paths](/recipe_modules/path/api.py#L316)(self, path, filt=(lambda p: True)):**
For testing purposes, assert that |path| doesn't exist.
« no previous file with comments | « no previous file | recipe_modules/path/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698