Skip to content

Commit

Permalink
Update golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 1, 2021
1 parent 6467aba commit e831911
Show file tree
Hide file tree
Showing 34 changed files with 76 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/stardoc_rule.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Starlark rule for stardoc: a documentation generator tool written in Java.

<a id="#stardoc"></a>

## stardoc
Expand Down
8 changes: 5 additions & 3 deletions setup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def stardoc_repositories():
_include_if_not_defined(
http_archive,
name = "bazel_skylib",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/16de038c484145363340eeaf0e97a0c9889a931b.tar.gz"], # 2020-08-11
sha256 = "96e0cd3f731f0caef9e9919aa119ecc6dace36b149c2f47e40aa50587790402b",
strip_prefix = "bazel-skylib-16de038c484145363340eeaf0e97a0c9889a931b",
sha256 = "58f558d04a936cade1d4744d12661317e51f6a21e3dd7c50b96dc14f3fa3b87d",
strip_prefix = "bazel-skylib-df3c9e2735f02a7fe8cd80db4db00fec8e13d25f",
urls = [
"https://github.com/bazelbuild/bazel-skylib/archive/df3c9e2735f02a7fe8cd80db4db00fec8e13d25f.tar.gz",
],
)
_include_if_not_defined(
http_archive,
Expand Down
7 changes: 6 additions & 1 deletion test/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""Golden file tests
To update all the golden files after a logic change, run
update-stardoc-tests.sh
"""

load(":stardoc_test.bzl", "stardoc_test")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@bazel_skylib//rules:write_file.bzl", "write_file")

licenses(["notice"]) # Apache 2.0

Expand Down
1 change: 1 addition & 0 deletions test/stardoc_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def _create_test_targets(

diff_test(
name = test_name,
failure_message = "Please run update-stardoc-tests.sh",
file1 = actual_generated_doc,
file2 = golden_file,
)
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/android_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#android_related_rule"></a>

## android_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/angle_bracket_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Input file to test angle bracket bug (https://github.com/bazelbuild/skydoc/issues/186)

<a id="#my_anglebrac"></a>

## my_anglebrac
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/apple_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#apple_related_rule"></a>

## apple_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/aspect_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

The input file for the aspect test

<a id="#my_aspect_impl"></a>

## my_aspect_impl
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/attribute_defaults_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A golden test to verify attribute default values.

<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/attribute_types_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/cc_api_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Input file for C++ api test

<a id="#cpp_related_rule"></a>

## cpp_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/config_apis_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#int_setting"></a>

## int_setting
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/cpp_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#cpp_related_rule"></a>

## cpp_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/filter_rules_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/function_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A test that verifies basic user function documentation.

<a id="#check_sources"></a>

## check_sources
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/generated_bzl_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A direct dependency file of the input file.

<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/html_tables_template_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Input file for markdown template test

<a id="#example_rule"></a>

## example_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/java_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#java_related_rule"></a>

## java_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/local_repository_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A test that verifies documenting functions in an input file under a local_repository.

<a id="#min"></a>

## min
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/macro_kwargs_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

Tests for functions which use *args or **kwargs

<a id="#macro_with_args"></a>

## macro_with_args
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/misc_apis_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/multi_level_namespace_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A test that verifies documenting a multi-leveled namespace of functions.

<a id="#my_namespace.min"></a>

## my_namespace.min
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A test that verifies documenting a multi-leveled namespace of functions with whitelist symbols.
The whitelist symbols should cause everything in my_namespace to to be documented, but only a
specific symbol in other_namespace to be documented.

<a id="#my_namespace.min"></a>

## my_namespace.min
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/multiple_files_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A direct dependency file of the input file.

<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/multiple_rules_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/namespace_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

A test that verifies documenting a namespace of functions.

<a id="#my_namespace.assert_non_empty"></a>

## my_namespace.assert_non_empty
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/provider_basic_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#MyFooInfo"></a>

## MyFooInfo
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/providers_for_attributes_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

The input file for the providers for attributes test

<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/py_rule_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

The input file for the python rule test

<a id="#py_related_rule"></a>

## py_related_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/repo_rules_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_repo"></a>

## my_repo
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/same_level_file_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/simple_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule"></a>

## my_rule
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/struct_default_value_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->

The input file for struct default values test

<a id="#check_struct_default_values"></a>

## check_struct_default_values
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/unknown_name_test/golden.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->



<a id="#my_rule_impl"></a>

## my_rule_impl
Expand Down

0 comments on commit e831911

Please sign in to comment.