github.com/0xKiwi/rules_go@v0.24.3/tests/core/go_proto_library/README.rst (about)

     1  Basic go_proto_library functionality
     2  ====================================
     3  
     4  .. _go_proto_library: /proto/core.rst#_go_proto_library
     5  .. _go_library: /go/core.rst#_go_library
     6  .. _#1422: https://github.com/bazelbuild/rules_go/issues/1422
     7  .. _#1596: https://github.com/bazelbuild/rules_go/issues/1596
     8  
     9  Tests to ensure the basic features of `go_proto_library`_ are working.
    10  
    11  .. contents::
    12  
    13  embed_test
    14  ----------
    15  
    16  Checks that `go_proto_library`_ can embed rules that provide `GoLibrary`_.
    17  
    18  transitive_test
    19  ---------------
    20  
    21  Checks that `go_proto_library`_ can import a proto dependency that is
    22  embedded in a `go_library`_. Verifies `#1422`_.
    23  
    24  adjusted_import_test
    25  --------------------
    26  
    27  Checks that `go_proto_library`_ can build ``proto_library`` with
    28  ``import_prefix`` and ``strip_import_prefix``.
    29  
    30  gofast_test and gofast_grpc_test
    31  --------------------------------
    32  
    33  Checks that the gogo `gofast` compiler plugins build and link.  In
    34  particular, these plugins only depoend on `github.com/golang/protobuf`.
    35  
    36  gogofast_test and gogofast_grpc_test
    37  ------------------------------------
    38  
    39  Checks that the `gogofast` compiler plugins build and link.  In
    40  particular, these plugins depend on both `github.com/gogo/protobuf`
    41  and `github.com/golang/protobuf`.
    42  
    43  proto_package_test
    44  ------------------
    45  
    46  Checks that `go_proto_library`_ generates files with a package name based on
    47  the proto package, not ``importpath`` when ``option go_package`` is not given.
    48  Verifies `#1596`_.
    49  
    50  wkt_wrapper_test
    51  ----------------
    52  
    53  Checks that most of the well known types in ``//proto/wkt`` are wrappers
    54  for packages in ``@org_golang_google_protobuf``. The proto types should be
    55  type aliases.
    56  
    57  protos_alias_test
    58  -----------------
    59  
    60  Checks that packages generated by `go_proto_library` can be imported using one of the strings
    61  listed in ``importpath_aliases``.