Commit Graph

12 Commits

Author SHA1 Message Date
saxon 5aff27ac4d stream/mts/psi/descriptor_test.go: wrote test to check ProgramInfoLen func and descriptors func 2019-01-29 10:40:22 +10:30
saxon 3aa0efc16a stream/mts/meta_test.go: added TestEncode to test Meta.Encoding function 2019-01-28 18:07:34 +10:30
saxon 960c110acb stream/mts/meta.go: fixed Meta.Encode() func so that it calculates data length correctly 2019-01-28 17:45:38 +10:30
saxon 00816ecf84 stream/mts/meta_test.go: added test to meta_test.go to remind me to add a test function once the Meta.Encode() function is complete 2019-01-27 18:34:35 +10:30
saxon 601351b021 stream/mts/meta_test.go: adding comments to meta_test.go testing functions 2019-01-27 18:33:15 +10:30
saxon e1ac1ac5d4 stream/mts/meta_test.go: using consts for commonly occuring test strings 2019-01-27 18:29:45 +10:30
saxon 7fc2b76e6b stream/mts/meta_test.go: added TestDeleteKeyAbsent to check that we get correct err when we try to delete data of key that doesn't exist 2019-01-27 18:24:26 +10:30
saxon c16f144372 stream/mts/meta_test.go: added TestDelete to check that deleting a particular metadata entry by key works 2019-01-27 18:21:49 +10:30
saxon bd54dd128b stream/mts/meta_test.go: added TestGetAbsent key to check that we get an error when we try and get data with key that doesn't exist in metadata map 2019-01-27 18:15:22 +10:30
saxon 17d06f49f4 stream/mts/meta_test.go: added TestAll func to make sure Meta.All is working correctly 2019-01-27 18:02:51 +10:30
saxon 3bb1ca9379 stream/mts: wrote NewMeta func to initialize map in the Meta struct. Also wrote two tests, one TestAddAndGet to see if we can add and get metadata, and also second TestUpdate to see if we can correctly update metadata with the same key using Meta.Add 2019-01-27 17:57:42 +10:30
saxon c547c8bd19 stream/mts: added meta_test.go file and wrote todos for testing 2019-01-27 17:16:44 +10:30