2019-03-26 11:38:49 +00:00
|
|
|
## diff_test
|
|
|
|
|
|
|
|
<pre>
|
2019-05-08 14:34:47 +00:00
|
|
|
diff_test(<a href="#diff_test-name">name</a>, <a href="#diff_test-file1">file1</a>, <a href="#diff_test-file2">file2</a>, <a href="#diff_test-kwargs">kwargs</a>)
|
2019-03-26 11:38:49 +00:00
|
|
|
</pre>
|
|
|
|
|
2019-05-08 14:34:47 +00:00
|
|
|
A test that compares two files.
|
2019-03-26 11:38:49 +00:00
|
|
|
|
2019-05-08 14:34:47 +00:00
|
|
|
The test succeeds if the files' contents match.
|
2019-03-26 11:38:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<table class="params-table">
|
|
|
|
<colgroup>
|
|
|
|
<col class="col-param" />
|
|
|
|
<col class="col-description" />
|
|
|
|
</colgroup>
|
|
|
|
<tbody>
|
|
|
|
<tr id="diff_test-name">
|
|
|
|
<td><code>name</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
The name of the test rule.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr id="diff_test-file1">
|
|
|
|
<td><code>file1</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
Label of the file to compare to <code>file2</code>.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr id="diff_test-file2">
|
|
|
|
<td><code>file2</code></td>
|
|
|
|
<td>
|
|
|
|
required.
|
|
|
|
<p>
|
|
|
|
Label of the file to compare to <code>file1</code>.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr id="diff_test-kwargs">
|
|
|
|
<td><code>kwargs</code></td>
|
|
|
|
<td>
|
|
|
|
optional.
|
|
|
|
<p>
|
|
|
|
The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|