• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ahamez / protox / 38eb5a7d50a2b280a366dc62a044fb6e40887242

20 Feb 2025 09:06AM UTC coverage: 97.915%. Remained the same
38eb5a7d50a2b280a366dc62a044fb6e40887242

push

github

ahamez
chore(deps-dev): bump ex_doc from 0.37.1 to 0.37.2

Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.37.1 to 0.37.2.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.37.1...v0.37.2)

---
updated-dependencies:
- dependency-name: ex_doc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

1174 of 1199 relevant lines covered (97.91%)

68636.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/google/protobuf/string_value.ex
1
defmodule Protox.Google.Protobuf.StringValue do
2
  @moduledoc false
3

4
  use Protox.Define,
5
    enums: [],
6
    messages: [
7
      %Protox.Message{
8
        name: Google.Protobuf.StringValue,
9
        syntax: :proto3,
10
        fields: [
11
          Protox.Field.new!(
12
            kind: {:scalar, ""},
13
            label: :optional,
14
            name: :value,
15
            tag: 1,
16
            type: :string
17
          )
18
        ]
19
      }
20
    ]
21
end
22

23
defimpl Protox.JsonMessageDecoder, for: Google.Protobuf.StringValue do
24
  def decode_message(_initial_message, nil), do: nil
25

26
  def decode_message(initial_message, value) do
27
    struct!(initial_message, value: Protox.JsonDecode.decode_value(value, :string))
14✔
28
  end
29
end
30

31
defimpl Protox.JsonMessageEncoder, for: Google.Protobuf.StringValue do
32
  def encode_message(msg, json_encode) do
33
    Protox.JsonEncode.encode_value(msg.value, :string, json_encode)
14✔
34
  end
35
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc