Home
last modified time | relevance | path

Searched refs:tagContext (Results 1 – 4 of 4) sorted by relevance

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/
DTagContextBinarySerializerImplTest.java50 private final TagContext tagContext = field in TagContextBinarySerializerImplTest
63 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingDisabled()
69 final byte[] serialized = serializer.toByteArray(tagContext); in toByteArray_TaggingReenabled()
71 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingReenabled()
73 assertThat(serializer.toByteArray(tagContext)).isEqualTo(serialized); in toByteArray_TaggingReenabled()
80 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingDisabled()
88 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingReenabled()
92 assertThat(serializer.fromByteArray(serialized)).isEqualTo(tagContext); in fromByteArray_TaggingReenabled()
DTagContextSerializationTest.java112 TagContext tagContext = builder.build(); in testSerializeTooLargeTagContext() local
115 serializer.toByteArray(tagContext); in testSerializeTooLargeTagContext()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/
DCurrentTagContextUtilsTest.java40 private final TagContext tagContext = field in CurrentTagContextUtilsTest
71 Scope scopedTags = CurrentTagContextUtils.withTagContext(tagContext); in testWithTagContext()
73 assertThat(CurrentTagContextUtils.getCurrentTagContext()).isSameAs(tagContext); in testWithTagContext()
83 Scope scopedTags = CurrentTagContextUtils.withTagContext(tagContext); in testWithTagContextUsingWrap()
85 assertThat(CurrentTagContextUtils.getCurrentTagContext()).isSameAs(tagContext); in testWithTagContextUsingWrap()
93 .isSameAs(tagContext); in testWithTagContextUsingWrap()
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DNoopStatsTest.java44 private final TagContext tagContext = field in NoopStatsTest
116 NoopStats.getNoopStatsRecorder().newMeasureMap().put(MEASURE, 5).record(tagContext); in noopStatsRecorder_Record()