diff --git a/array.go b/array.go index df8e5f7..fee440d 100644 --- a/array.go +++ b/array.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/array_test.go b/array_test.go index 7057f94..1768789 100644 --- a/array_test.go +++ b/array_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/benchmarkV1_test.go b/benchmarkV1_test.go new file mode 100644 index 0000000..7c6779c --- /dev/null +++ b/benchmarkV1_test.go @@ -0,0 +1,89 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + +// +build v1 + +package goavro + +import ( + "io/ioutil" + "testing" +) + +func BenchmarkNewCodecUsingV1(b *testing.B) { + schema, err := ioutil.ReadFile("fixtures/quickstop.avsc") + if err != nil { + b.Fatal(err) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = newCodecUsingV1(b, string(schema)) + } +} + +func BenchmarkNativeFromAvroUsingV1(b *testing.B) { + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + _, _ = nativeFromAvroUsingV1(b, avroBlob) + } +} + +func BenchmarkBinaryFromNativeUsingV1(b *testing.B) { + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = binaryFromNativeUsingV1(b, codec, nativeData) + } +} + +func BenchmarkNativeFromBinaryUsingV1(b *testing.B) { + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) + binaryData := binaryFromNativeUsingV1(b, codec, nativeData) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = nativeFromBinaryUsingV1(b, codec, binaryData) + } +} + +func BenchmarkTextualFromNativeUsingJSONMarshal(b *testing.B) { + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = textFromNativeUsingJSONMarshal(b, codec, nativeData) + } +} + +func BenchmarkNativeFromTextualUsingJSONUnmarshal(b *testing.B) { + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) + textData := textFromNativeUsingJSONMarshal(b, codec, nativeData) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = nativeFromTextUsingJSONUnmarshal(b, codec, textData) + } +} diff --git a/benchmark_helpers_test.go b/benchmark_helpers_test.go deleted file mode 100644 index 7e085c3..0000000 --- a/benchmark_helpers_test.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version -// 2.0 (the "License"); you may not use this file except in compliance with the -// License. You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - -package goavro - -import ( - "io/ioutil" - "testing" -) - -func benchmarkNewCodecUsingV1(b *testing.B, avscPath string) { - schema, err := ioutil.ReadFile(avscPath) - if err != nil { - b.Fatal(err) - } - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = newCodecUsingV1(b, string(schema)) - } -} - -func benchmarkNewCodecUsingV2(b *testing.B, avscPath string) { - schema, err := ioutil.ReadFile(avscPath) - if err != nil { - b.Fatal(err) - } - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = newCodecUsingV2(b, string(schema)) - } -} - -func benchmarkNativeFromAvroUsingV1(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - b.ResetTimer() - for i := 0; i < b.N; i++ { - _, _ = nativeFromAvroUsingV1(b, avroBlob) - } -} - -func benchmarkNativeFromAvroUsingV2(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - b.ResetTimer() - for i := 0; i < b.N; i++ { - _, _ = nativeFromAvroUsingV2(b, avroBlob) - } -} - -func benchmarkBinaryFromNativeUsingV1(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = binaryFromNativeUsingV1(b, codec, nativeData) - } -} - -func benchmarkBinaryFromNativeUsingV2(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = binaryFromNativeUsingV2(b, codec, nativeData) - } -} - -func benchmarkNativeFromBinaryUsingV1(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) - binaryData := binaryFromNativeUsingV1(b, codec, nativeData) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = nativeFromBinaryUsingV1(b, codec, binaryData) - } -} - -func benchmarkNativeFromBinaryUsingV2(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) - binaryData := binaryFromNativeUsingV2(b, codec, nativeData) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = nativeFromBinaryUsingV2(b, codec, binaryData) - } -} - -func benchmarkTextualFromNativeUsingJSONMarshal(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = textFromNativeUsingJSONMarshal(b, codec, nativeData) - } -} - -func benchmarkTextualFromNativeUsingV2(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = textFromNativeUsingV2(b, codec, nativeData) - } -} - -func benchmarkNativeFromTextualUsingJSONUnmarshal(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV1(b, avroBlob) - textData := textFromNativeUsingJSONMarshal(b, codec, nativeData) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = nativeFromTextUsingJSONUnmarshal(b, codec, textData) - } -} - -func benchmarkNativeFromTextualUsingV2(b *testing.B, avroPath string) { - avroBlob, err := ioutil.ReadFile(avroPath) - if err != nil { - b.Fatal(err) - } - nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) - textData := textFromNativeUsingV2(b, codec, nativeData) - b.ResetTimer() - for i := 0; i < b.N; i++ { - _ = nativeFromTextUsingV2(b, codec, textData) - } -} diff --git a/benchmark_test.go b/benchmark_test.go index 75a4c3b..cd7c02a 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 @@ -9,52 +9,79 @@ package goavro -import "testing" - -func BenchmarkNewCodecUsingV1(b *testing.B) { - benchmarkNewCodecUsingV1(b, "fixtures/quickstop.avsc") -} +import ( + "io/ioutil" + "testing" +) func BenchmarkNewCodecUsingV2(b *testing.B) { - benchmarkNewCodecUsingV2(b, "fixtures/quickstop.avsc") -} - -func BenchmarkNativeFromAvroUsingV1(b *testing.B) { - benchmarkNativeFromAvroUsingV1(b, "fixtures/quickstop-null.avro") + schema, err := ioutil.ReadFile("fixtures/quickstop.avsc") + if err != nil { + b.Fatal(err) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = newCodecUsingV2(b, string(schema)) + } } func BenchmarkNativeFromAvroUsingV2(b *testing.B) { - benchmarkNativeFromAvroUsingV2(b, "fixtures/quickstop-null.avro") -} - -func BenchmarkBinaryFromNativeUsingV1(b *testing.B) { - benchmarkBinaryFromNativeUsingV1(b, "fixtures/quickstop-null.avro") + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + b.ResetTimer() + for i := 0; i < b.N; i++ { + _, _ = nativeFromAvroUsingV2(b, avroBlob) + } } func BenchmarkBinaryFromNativeUsingV2(b *testing.B) { - benchmarkBinaryFromNativeUsingV2(b, "fixtures/quickstop-null.avro") -} - -func BenchmarkNativeFromBinaryUsingV1(b *testing.B) { - benchmarkNativeFromBinaryUsingV1(b, "fixtures/quickstop-null.avro") + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = binaryFromNativeUsingV2(b, codec, nativeData) + } } func BenchmarkNativeFromBinaryUsingV2(b *testing.B) { - benchmarkNativeFromBinaryUsingV2(b, "fixtures/quickstop-null.avro") -} - -func BenchmarkTextualFromNativeUsingJSONMarshal(b *testing.B) { - benchmarkTextualFromNativeUsingJSONMarshal(b, "fixtures/quickstop-null.avro") + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) + binaryData := binaryFromNativeUsingV2(b, codec, nativeData) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = nativeFromBinaryUsingV2(b, codec, binaryData) + } } func BenchmarkTextualFromNativeUsingV2(b *testing.B) { - benchmarkTextualFromNativeUsingV2(b, "fixtures/quickstop-null.avro") -} - -func BenchmarkNativeFromTextualUsingJSONUnmarshal(b *testing.B) { - benchmarkNativeFromTextualUsingJSONUnmarshal(b, "fixtures/quickstop-null.avro") + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = textFromNativeUsingV2(b, codec, nativeData) + } } func BenchmarkNativeFromTextualUsingV2(b *testing.B) { - benchmarkNativeFromTextualUsingV2(b, "fixtures/quickstop-null.avro") + avroBlob, err := ioutil.ReadFile("fixtures/quickstop-null.avro") + if err != nil { + b.Fatal(err) + } + nativeData, codec := nativeFromAvroUsingV2(b, avroBlob) + textData := textFromNativeUsingV2(b, codec, nativeData) + b.ResetTimer() + for i := 0; i < b.N; i++ { + _ = nativeFromTextUsingV2(b, codec, textData) + } } diff --git a/binaryReader.go b/binaryReader.go index 34c9e9e..a199237 100644 --- a/binaryReader.go +++ b/binaryReader.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/binary_test.go b/binary_test.go index 138b331..9464562 100644 --- a/binary_test.go +++ b/binary_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/boolean.go b/boolean.go index 2ae3ec3..9f61a2e 100644 --- a/boolean.go +++ b/boolean.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/boolean_test.go b/boolean_test.go index 035f45e..2fc9577 100644 --- a/boolean_test.go +++ b/boolean_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/bytes.go b/bytes.go index f661275..eec23bf 100644 --- a/bytes.go +++ b/bytes.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/bytes_test.go b/bytes_test.go index 2c8c8f2..fd37775 100644 --- a/bytes_test.go +++ b/bytes_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/canonical.go b/canonical.go index 1f6f91e..27b9c14 100644 --- a/canonical.go +++ b/canonical.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro import ( diff --git a/canonical_test.go b/canonical_test.go index 82bb4b2..89adf48 100644 --- a/canonical_test.go +++ b/canonical_test.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro_test import ( diff --git a/codec.go b/codec.go index e77178d..a855212 100644 --- a/codec.go +++ b/codec.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/codec_test.go b/codec_test.go index 09eee21..e2a7e88 100644 --- a/codec_test.go +++ b/codec_test.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro_test import ( diff --git a/enum.go b/enum.go index af9b6f3..567c9fa 100644 --- a/enum.go +++ b/enum.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/enum_test.go b/enum_test.go index 3c69446..84dbdd8 100644 --- a/enum_test.go +++ b/enum_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/fixed.go b/fixed.go index 96907b1..d075de9 100644 --- a/fixed.go +++ b/fixed.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/fixed_test.go b/fixed_test.go index 32e411d..4eb2379 100644 --- a/fixed_test.go +++ b/fixed_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/floatingPoint.go b/floatingPoint.go index 2f0aa50..4ae3296 100644 --- a/floatingPoint.go +++ b/floatingPoint.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/floatingPoint_test.go b/floatingPoint_test.go index 2443053..f512483 100644 --- a/floatingPoint_test.go +++ b/floatingPoint_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/fuzz_test.go b/fuzz_test.go index d308b71..6b6089b 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/helperV1_test.go b/helperV1_test.go index 0744d0f..e6c6eb5 100644 --- a/helperV1_test.go +++ b/helperV1_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 @@ -7,6 +7,8 @@ // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +build v1 + package goavro import ( diff --git a/helperV2_test.go b/helperV2_test.go index 6e1a2a7..f053177 100644 --- a/helperV2_test.go +++ b/helperV2_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/helpers_test.go b/helpers_test.go index be812ac..11aa0d6 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/integer.go b/integer.go index 0355036..e7891bd 100644 --- a/integer.go +++ b/integer.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/integer_test.go b/integer_test.go index b416b16..ba54933 100644 --- a/integer_test.go +++ b/integer_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/logical_type.go b/logical_type.go index 68bd4ab..3c1a0f8 100644 --- a/logical_type.go +++ b/logical_type.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro import ( diff --git a/logical_type_test.go b/logical_type_test.go index 61c08b0..6591b51 100644 --- a/logical_type_test.go +++ b/logical_type_test.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro import ( diff --git a/map.go b/map.go index 1ba716e..ade7076 100644 --- a/map.go +++ b/map.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/map_test.go b/map_test.go index 6005823..d1b02d2 100644 --- a/map_test.go +++ b/map_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/name.go b/name.go index e0fcac5..935a6c7 100644 --- a/name.go +++ b/name.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/name_test.go b/name_test.go index 9277080..a5ecb09 100644 --- a/name_test.go +++ b/name_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/null.go b/null.go index 08328fc..bae44b8 100644 --- a/null.go +++ b/null.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/null_test.go b/null_test.go index c5498dd..328f13a 100644 --- a/null_test.go +++ b/null_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/number_recover_test.go b/number_recover_test.go index 98d0c67..232fd6d 100644 --- a/number_recover_test.go +++ b/number_recover_test.go @@ -1,3 +1,12 @@ +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version +// 2.0 (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + package goavro import ( diff --git a/ocf.go b/ocf.go index 53fd0ee..61f703a 100644 --- a/ocf.go +++ b/ocf.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/ocf_reader.go b/ocf_reader.go index c2d4a3d..fbcc696 100644 --- a/ocf_reader.go +++ b/ocf_reader.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/ocf_reader_test.go b/ocf_reader_test.go index 3eb5944..249644f 100644 --- a/ocf_reader_test.go +++ b/ocf_reader_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/ocf_test.go b/ocf_test.go index 83935dd..3d4d4bd 100644 --- a/ocf_test.go +++ b/ocf_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/ocf_writer.go b/ocf_writer.go index bb348a5..820af5c 100644 --- a/ocf_writer.go +++ b/ocf_writer.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/ocf_writer_test.go b/ocf_writer_test.go index 2fce651..a1ef518 100644 --- a/ocf_writer_test.go +++ b/ocf_writer_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/race_test.go b/race_test.go index 6bdc054..894558d 100644 --- a/race_test.go +++ b/race_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/record.go b/record.go index 5fa4151..109a249 100644 --- a/record.go +++ b/record.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/record_test.go b/record_test.go index 05e74ae..0f5e192 100644 --- a/record_test.go +++ b/record_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/schema_test.go b/schema_test.go index 64f1a8e..68de8bb 100644 --- a/schema_test.go +++ b/schema_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/text.go b/text.go index 199bbcb..10e5308 100644 --- a/text.go +++ b/text.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/text_test.go b/text_test.go index 354d185..49979d8 100644 --- a/text_test.go +++ b/text_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/union.go b/union.go index 10cd8e0..25bf3f4 100644 --- a/union.go +++ b/union.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 diff --git a/union_test.go b/union_test.go index ac9937c..b3b6e85 100644 --- a/union_test.go +++ b/union_test.go @@ -1,4 +1,4 @@ -// Copyright [2017] LinkedIn Corp. Licensed under the Apache License, Version +// Copyright [2019] LinkedIn Corp. Licensed under the Apache License, Version // 2.0 (the "License"); you may not use this file except in compliance with the // License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0