Skip to content

Commit

Permalink
Revert "Add Well-Known Timestamp Type (#150)"
Browse files Browse the repository at this point in the history
This reverts commit 5c92d5a.
  • Loading branch information
Evan Relf committed Jul 1, 2021
1 parent c2bf06e commit b4caaac
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 182 deletions.
3 changes: 0 additions & 3 deletions proto3-suite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ library
Proto3.Suite.Tutorial
Proto3.Suite.Types

Google.Protobuf.Timestamp

Proto3.Suite.DotProto.Internal
Proto3.Suite.JSONPB.Class

Expand Down Expand Up @@ -89,7 +87,6 @@ library
quickcheck-instances < 0.4,
safe ==0.3.*,
system-filepath,
time,
text >= 0.2 && <1.3,
transformers >=0.4 && <0.6,
turtle,
Expand Down
167 changes: 0 additions & 167 deletions src/Google/Protobuf/Timestamp.hs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/TestCodeGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import Data.String (IsString)
import Data.Swagger (ToSchema)
import qualified Data.Swagger
import qualified Data.Text as T
import Google.Protobuf.Timestamp (Timestamp(..))
import Prelude hiding (FilePath)
import Proto3.Suite.DotProto.Generate
import Proto3.Suite.DotProto (fieldLikeName, prefixedEnumFieldName, typeLikeName)
Expand All @@ -38,24 +37,13 @@ codeGenTests = testGroup "Code generator unit tests"
[ camelCaseMessageNames
, camelCaseMessageFieldNames
, don'tAlterEnumFieldNames
, knownTypeMessages
{-
- These tests have been temporarily removed to pass CI.
, simpleEncodeDotProto
, simpleDecodeDotProto
-}
]

knownTypeMessages :: TestTree
knownTypeMessages =
testGroup
"KnownType custom codec"
[ testCase "Timestamp rfc3339 json encoding"
$ encode defaultOptions (Timestamp 0 0) @?= "\"1970-01-01T00:00:00Z\""
, testCase "Timestamp rfc3339 json decoding"
$ eitherDecode "\"1970-01-01T00:00:00Z\"" @?= Right (Timestamp 0 0)
]

camelCaseMessageNames :: TestTree
camelCaseMessageNames = testGroup "CamelCasing of message names"
[ testCase "Capitalizes letters after underscores"
Expand Down

0 comments on commit b4caaac

Please sign in to comment.