All files / ext.wikilambda.edit/components/function ZInlineTesterCall.vue

75% Statements 3/4
100% Branches 0/0
0% Functions 0/1
75% Lines 3/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48                                                    18x 18x     18x                                  
<template>
	<!--
		WikiLambda Vue component for inline callers for ZTester objects.
 
		@copyright 2020– Abstract Wikipedia team; see AUTHORS.txt
		@license MIT
	-->
	<div class="ext-wikilambda-inline-tester-call">
		<span v-for="argument in zFunctionArguments" :key="argument.key">
			{{ argument.label }}:
			<!--
				ZInlineTesterCall -> ZObjectKey -> ZObject -> ZFunction -> ZTesterList ->
				ZTesterAdHoc -> ZInlinetesterCall
			-->
			<!-- eslint-disable-next-line vue/no-unregistered-components -->
			<wl-z-object-key
				:zobject-id="findArgumentId( argument.key )"
				:persistent="false"
				:parent-type="Constants.Z_FUNCTION_CALL"
				:z-key="argument.key"
			></wl-z-object-key>
		</span>
	</div>
</template>
 
<script>
var ZFunctionCall = require( '../main-types/ZFunctionCall.vue' ),
	mapGetters = require( 'vuex' ).mapGetters;
 
// @vue/component
module.exports = exports = {
	name: 'wl-z-inline-tester-call',
	extends: ZFunctionCall,
	provide: function () {
		return {
			viewmode: this.getViewMode
		};
	},
	computed: mapGetters( [ 'getViewMode' ] )
};
</script>
 
<style lang="less">
.ext-wikilambda-inline-tester-call {
	display: inline;
}
</style>